2017-07-17 10 views
2

CentOSにPhantomJSをインストールしようとしています。これらは私が従ったステップです。CentOSにPhantomJSをインストールする

yum install freetype fontconfig 
cd ~ 
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-i686.tar.bz2 
bunzip2 phantomjs*.tar.bz2 
tar xvf phantomjs*.tar 
cp phantomjs*/bin/phantomjs /usr/bin/phantomjs 

このエラーは以下のとおりです。

phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory 

誰でも軽く投げることができます。私はfontconfigをインストールしました。

答えて

0

ワウ、そのバージョンは古代です、あなたは特定の理由でそれを必要としますか?とにかく

、あなたのエラーsuggests installing追加パッケージのa basic Google search

libfontconfig 
+0

私はいくつかのブログの手順を実行していました。最新バージョンをインストールする手順はありますか?ありがとう! –

+0

お試しくださいhttps://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-i686.tar.bz2 – Vaviloff

+1

パッケージはありませんlibfontconfig centos –

0

CentOSのために利用可能なパッケージlibfontconfig。 手動でインストールすることもできます:

wget http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.0.tar.gz 
tar -zxvf fontconfig-2.11.0.tar.gz 
cd fontconfig-2.11.0 
./configure -prefix=/usr 
make 
# move the file into /usr/lib manually (don't trust 'make install' on a production box) 
sudo mv ./src/.libs/libfontconfig.so.1.2.0 /usr/lib/ 
# and setup the libfontconfig.so.1 symlink 
cd /usr/lib 
sudo ln -s libfontconfig.so.1.2.0 libfontconfig.so.1 
関連する問題