Forked from wizardishungry/getting-phantomjs-working-on-centos55.txt
Created
June 17, 2011 18:23
-
-
Save yandod/1031961 to your computer and use it in GitHub Desktop.
getting phantomjs working on CentOS 5.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo for a more modern version of qt (4.7) | |
http://atrpms.net/documentation/install/ | |
http://packages.atrpms.net/dist/el5/qt4/ | |
cat /etc/yum.repos.d/atrpms.repo | |
[atrpms] | |
name=ATrpms manual | |
baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/testing/ | |
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms | |
gpgcheck=1 | |
yum install qt47-webkit qt47-webkit-devel qt47-devel sqlite | |
qmake-qt47 && make && make install | |
#setup virtual screen | |
yum install xorg-x11-server-Xvfb xorg-x11-fonts* | |
Xvfb :2 -screen 0 800x600x24 2> /dev/null & | |
export DISPLAY=:2.0 | |
phantomjs test.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
記憶にないが書いたようだ。。。