0

我已经设置了一个 AWS EC2 实例 [Amazon Linux AMI 2017.03.1 (HVM)] 并且每当我尝试检查 chromedriver 的版本(从这里下载 2.30 ,也有足够的权限运行,因为stat -c "%a %n" chromedriver给了755 chromedriver)使用命令

chromedriver --version

我收到以下错误:

error while loading shared libraries: libgconf-2.so.4: 
cannot open shared object file: No such file or directory

结果ldd chromedriver也是:

libgconf-2.so.4 => not found

我知道上面的库是由GConf2(参考这里)提供的,所以我运行了命令yum install Conf2 ,但遇到了以下错误:

# yum install GConf2
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main    | 2.1 kB  00:00:00
amzn-updates | 2.3 kB  00:00:00
No package GConf2 available.
Error: Nothing to do

笔记 :

  1. 我以 root 用户身份运行命令!
  2. 尝试执行yum clean allyum update更新了所有软件包,但仍然出现错误
  3. 也试过yum provides */libgconf-2.so.4了,报错:Loaded plugins: priorities, update-motd, upgrade-helper No matches found
4

1 回答 1

1

我在此之后安装了 Gconf2

于 2017-09-21T22:24:20.650 回答