javascript · linux · minicloud · ppc64le

javascript: phantomjs on Power

PhantomJS (phantomjs.org) is a headless WebKit scriptable with JavaScript. Officially it does not support Power, with builds available only for x86_64 architecture. But, if you want to use on your ppc64le, follow the steps below:

The initial step is to get access to Power virtual machine for free at Minicloud. Then, once the VM is up and running, install the required dependencies:


sudo apt-get update -qq
sudo apt-get upgrade -y -qq
sudo apt-get install -qq build-essential libicu-dev libssl-dev gperf bison ruby flex

 

Once installed, clone the phantomjs repository:


git clone https://github.com/ariya/phantomjs.git

With, you are all set to build phantomjs:


cd ./phanthomjs

./build.py -c -r

When the build completes, your phantomjs will be available in the /bin folder.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s