phantomjs installation

WE HAVE MOVED!

Please visit our new Drupal Website at https://www.xenyo.com我們的新網頁設計公司網頁.

#install qt47
rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms
yum install qt47 qt47-webkit qt47-webkit-devel qt47-x11 qt47-sqlite
vim /etc/profile
 
export QMAKESPEC=/usr/lib/qt47/mkspecs/linux-g++-32
export QTDIR=/usr/lib/qt47
export QTLIB=/usr/lib/qt47/lib
export QTINC=/usr/lib/qt47/include
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export PATH=$QTDIR/bin:$PATH
 
source /etc/profile
/usr/lib/qt47/bin/qmake-qt47 && make
 
#install phantomjs
git clone git://github.com/jbraeuer/phantomjs-rpms.git
./build.sh --jobs 1
cd deploy
sh package.sh
 
#uninstall
git clean -xfd
make distclean
Help Share this Article