PhantomJS 1.7 build for Linux 64 bit

At a project I work on, we needed PhantomJS to run from a Redhat Fedora 64 bit machine.

Since phantomJs is just released this week, I needed to build it myself.

 

I post this link to the binary in case it can benefit others.

 

PhantomJs 1.7.0 built on Linux Redhat Fedora 64 bit

 

 

PhantomJS is a fantastic tool for automating tests, since it is a headless browser which we wrapped in our automation framework to run javascript based tests very fast and easily.

 

I followed the build instructions (the instructions described for Amazon EC2 also worked on the fedora I am running).

sudo yum install gcc gcc-c++ make git openssl-devel freetype-devel fontconfig-devel
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.7
./build.sh --jobs 1

#(added step below by me)
sudo yum install upx
After finishing the build, run deploy/package.sh which creates PhantomJS binary tarball that can be moved around and/or extracted to a different location. This is the correct way to install the built binary into an arbitrary directory, i.e. do not simply copy the executable as it won't work.

The link I posted is the actual outcome of ./deploy/package.sh

 

For other operating systems, you could probably just get the binary at the official PhantomJs download page.

4 Responses to “PhantomJS 1.7 build for Linux 64 bit”

  1. venkat Says:

    Phantom Js is a fantastic tool for automating tests, since it is a headless browser which we wrapped in our automation framework to run javascript based tests very fast and eas

  2. jijojohn Says:

    Phantom js is a fantastic tool for automatic test,awesome…

  3. Darwin Says:

    Good tool for testing. I need it for a different OS though

  4. David Says:

    Phantom Js is a superb tool and I use it for my automation tests.Also the javascript tests run very quickly.It is an optimal solution for headless website testing,screen capture,page automation and network automation.Thanks for sharing your article.it has been quiet helpful to me.