Last active
August 29, 2015 14:13
-
-
Save paulsheldrake/735ed6864e5caa4ba79a to your computer and use it in GitHub Desktop.
Compile PhantomJS on Centos/Red Hat. This can be compiled on AWS T2.Medium instance before you run out of the default credits. I've picked a specific commit to build from but you can delete that line and build from master if you like.
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
sudo yum -y update | |
sudo yum -y install "Development tools" | |
sudo yum -y install gcc gcc-c++ make flex bison gperf ruby openssl-devel freetype-devel fontconfig-devel libicu-devel sqlite-devel libpng-devel libjpeg-devel git | |
cd ~ | |
git clone https://github.com/ariya/phantomjs.git | |
cd phantomjs | |
git checkout 05d7e3e77d78904d504bd20e61c2bb3c41cd8a0d | |
chmod 777 build.sh | |
./build.sh --confirm | |
echo "Here is your compiled version of phantomjs" | |
ls -la bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment