Skip to content

Instantly share code, notes, and snippets.

@nl5887
Created January 16, 2016 16:53
Show Gist options
  • Select an option

  • Save nl5887/6b111e3ae46d4e28430f to your computer and use it in GitHub Desktop.

Select an option

Save nl5887/6b111e3ae46d4e28430f to your computer and use it in GitHub Desktop.
building phantomjs on amazon linux
cd /usr/local/src/
yum install -y tmux vim
yum groupinstall 'Development Tools'
yum install libicu-devel libpng-devel libjpeg-turbo-devel freetype-devel
yum install gperf libX11-devel
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-source.zip
unzip phantomjs-2.0.0-source.zip
cd phantomjs-2.0.0
CFLAGS=-I/usr/include/freetype2/ ./build.sh
yum install fontconfig-devel
bin/phantomjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment