我是Cent os的新手 . 在Cent操作系统上安装phantomjs . 遵循以下步骤但仍面临问题 .
脚步 :
-
curl -O https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-i686.tar.bz2 .
-
tar xvf phantomjs-1.9.1-linux-i686.tar.bz2
-
cp phantomjs-1.9.1-linux-i686 / bin / phantomjs / usr / local / bin
-
sudo yum install freetype
-
sudo yum install fontconfig
以上所有步骤都已成功完成,但当我尝试点击phantomjs时,显示错误 "phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory."
提前致谢 .
1 回答
只要确保你成功运行
然后像往常一样尝试安装 .