我已经设置了AWS EC2实例[Amazon Linux AMI 2017.03.1(HVM)],每当我尝试检查chromedriver的版本(从here下载2.30时),都有足够的权限运行,因为{{ 1}}使用命令
给出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
提供(参考here)
所以我运行了命令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
和yum clean all
并更新了所有软件包并仍然获得了
错误yum update
,收到错误:yum provides */libgconf-2.so.4