Thursday, 9 April 2015

PhantomJS and setup steps on linux Ubuntu 14.04.1


What is phantomjs!


Full web stack and No browser required

PhantomJS is a headless WebKit scriptable with a JavaScript API. 

> sudo apt-get install phantomjs

If:
> phantomjs --version
-bash: /usr/local/bin/phantomjs: No such file or directory

Then:
>  whereis phantomjs
phantomjs: /usr/bin/phantomjs /usr/lib/phantomjs /usr/bin/X11/phantomjs

> sudo ln -s /usr/bin/phantomjs /usr/local/bin/phantomjs


Check If it works:
> phantomjs --version
1.9.0

That's all!


No comments:

Post a Comment