缺少共享库libgconf-2.so.4

时间:2021-10-26 03:29:16

I want to install chromedriver in one of the AWS EC2 instance which is linux(Red Hat Enterprise Linux Server release 6.7 Santiago - 64 bit). While installing the chromedriver, we ran into issue due to missing packages. I could find the package here but this intern require many other packages. Using any other AMI is not an option.

我想在一个AWS EC2实例中安装chromedriver,这个实例是linux(红帽企业Linux服务器版本6.7圣地亚哥 - 64位)。在安装chromedriver时,由于缺少包装,我们遇到了问题。我可以在这里找到包裹,但这个实习生需要许多其他包裹。使用任何其他AMI都不是一种选择。

Error is -

错误是 -

error while loading shared libraries libgconf-2.so.4 cannot open shared object file

3 个解决方案

#1


18  


Please ask yum for the file, libgconf-2.so.4 : $ yum provides */libgconf-2.so.4

请向yum询问文件libgconf-2.so.4:$ yum提供* / libgconf-2.so.4

Install GConf2 : # yum install GConf2

安装GConf2:#yum install GConf2

Packages http://mirror.centos.org/centos/6.8/os/ ... and updates http://mirror.centos.org/centos/6.8/updates/

包http://mirror.centos.org/centos/6.8/os/ ...并更新http://mirror.centos.org/centos/6.8/updates/

The chromedriver depends on the same packages / files as GConf2, and then some. Please see for yourself : $ ldd chromedriver , where 'chromedriver' is the unzipped executable.

chromedriver依赖于与GConf2相同的包/文件,然后是一些。请亲自看看:$ ldd chromedriver,其中'chromedriver'是解压缩的可执行文件。


EDIT :

编辑:

Solution for the chromedriver issue : Install a chromedriver for RHEL 6, chromedriver-31.0.1650.63-1.el6.x86_64.rpm https://drive.google.com/file/d/0B7S255p3kFXNX1c0UWlGOWpZOHM/view?usp=sharing

chromedriver问题的解决方案:为RHEL 6安装chromedriver,chromedriver-31.0.1650.63-1.el6.x86_64.rpm https://drive.google.com/file/d/0B7S255p3kFXNX1c0UWlGOWpZOHM/view?usp=sharing

Please download the package, and 1) cd Downloads/ 2) yum install chromedriver-31.0.1650.63-1.el6.x86_64.rpm ... and you have /usr/local/bin/chromedriver

请下载包,1)cd下载/ 2)yum install chromedriver-31.0.1650.63-1.el6.x86_64.rpm ...你有/ usr / local / bin / chromedriver


P.S. : The EL6 chromedriver was built from the source package chromium-31.0.1650.63-1.el6.src.rpm

附: :EL6 chromedriver是从源码包chrome-31.0.1650.63-1.el6.src.rpm构建的


#2


9  

I am using Ubuntu x64 and yum didn't work for me. But I found somebody mentioning simply use $sudo apt install libgconf2-4 worked for me to install the libgconf.

我使用的是Ubuntu x64,yum对我不起作用。但我发现有人提到简单地使用$ sudo apt install libgconf2-4为我安装了libgconf。

#3


0  

You might want to read this CentOS thread about your GLIBCXX_3.4.15. Especially apropos is this answer on the thread, especially the FAQ it references.

您可能想要阅读有关GLIBCXX_3.4.15的CentOS主题。特别是apropos是这个问题的答案,特别是它引用的FAQ。

CentOS (which aims to be as compatible with RHEL as possible) is a curated LTS distribution (as is RHEL). You might find a version of chromedriver compiled for RHEL 6 in one of the many repositories. If not, you'll probably have to build it yourself.

CentOS(旨在尽可能与RHEL兼容)是一个策划的LTS分发(和RHEL一样)。您可能会在许多存储库之一中找到为RHEL 6编译的chromedriver版本。如果没有,你可能需要自己构建它。

#1


18  


Please ask yum for the file, libgconf-2.so.4 : $ yum provides */libgconf-2.so.4

请向yum询问文件libgconf-2.so.4:$ yum提供* / libgconf-2.so.4

Install GConf2 : # yum install GConf2

安装GConf2:#yum install GConf2

Packages http://mirror.centos.org/centos/6.8/os/ ... and updates http://mirror.centos.org/centos/6.8/updates/

包http://mirror.centos.org/centos/6.8/os/ ...并更新http://mirror.centos.org/centos/6.8/updates/

The chromedriver depends on the same packages / files as GConf2, and then some. Please see for yourself : $ ldd chromedriver , where 'chromedriver' is the unzipped executable.

chromedriver依赖于与GConf2相同的包/文件,然后是一些。请亲自看看:$ ldd chromedriver,其中'chromedriver'是解压缩的可执行文件。


EDIT :

编辑:

Solution for the chromedriver issue : Install a chromedriver for RHEL 6, chromedriver-31.0.1650.63-1.el6.x86_64.rpm https://drive.google.com/file/d/0B7S255p3kFXNX1c0UWlGOWpZOHM/view?usp=sharing

chromedriver问题的解决方案:为RHEL 6安装chromedriver,chromedriver-31.0.1650.63-1.el6.x86_64.rpm https://drive.google.com/file/d/0B7S255p3kFXNX1c0UWlGOWpZOHM/view?usp=sharing

Please download the package, and 1) cd Downloads/ 2) yum install chromedriver-31.0.1650.63-1.el6.x86_64.rpm ... and you have /usr/local/bin/chromedriver

请下载包,1)cd下载/ 2)yum install chromedriver-31.0.1650.63-1.el6.x86_64.rpm ...你有/ usr / local / bin / chromedriver


P.S. : The EL6 chromedriver was built from the source package chromium-31.0.1650.63-1.el6.src.rpm

附: :EL6 chromedriver是从源码包chrome-31.0.1650.63-1.el6.src.rpm构建的


#2


9  

I am using Ubuntu x64 and yum didn't work for me. But I found somebody mentioning simply use $sudo apt install libgconf2-4 worked for me to install the libgconf.

我使用的是Ubuntu x64,yum对我不起作用。但我发现有人提到简单地使用$ sudo apt install libgconf2-4为我安装了libgconf。

#3


0  

You might want to read this CentOS thread about your GLIBCXX_3.4.15. Especially apropos is this answer on the thread, especially the FAQ it references.

您可能想要阅读有关GLIBCXX_3.4.15的CentOS主题。特别是apropos是这个问题的答案,特别是它引用的FAQ。

CentOS (which aims to be as compatible with RHEL as possible) is a curated LTS distribution (as is RHEL). You might find a version of chromedriver compiled for RHEL 6 in one of the many repositories. If not, you'll probably have to build it yourself.

CentOS(旨在尽可能与RHEL兼容)是一个策划的LTS分发(和RHEL一样)。您可能会在许多存储库之一中找到为RHEL 6编译的chromedriver版本。如果没有,你可能需要自己构建它。