Wednesday, October 24, 2012

PhantomJS on Debian Linux

This page shows how to install PhantomJS.

# Download phantomjs-1.7.0-source.zip here: https://code.google.com/p/phantomjs/downloads/list

aptitude install chrpath git-core libssl-dev libfontconfig1-dev upx-nrv

# upx-nrv is an efficient live-compressor for executables

unzip phantomjs-1.7.0-source.zip



# change the directory
cd phantomjs-1.7.0

./build.sh

./deploy/package.sh

cd deploy
 
cp pathToFile/phantomjs-1.7.0/deploy/phantomjs-1.7.0-linux-i686.tar.bz2 pathToFolder
 

cd pathToFolder 

tar xvjf phantomjs-1.7.0-linux-i686.tar.bz2

phantomjs-1.7.0-linux-i686/bin/phantomjs phantomjs-1.7.0-linux-i686/examples/hello.coffee


# Hello, world!

Reference

http://phantomjs.org/build.html

No comments: