I set up PhantomJS and recorded it to video: https://www.dailymotion.com/video/xnizmh_1_webcam
Build instructions: http://phantomjs.org/build.html
Is there anything wrong in my setup?
After I set it up I read the quick start tutorial and tried to write this code
phantomjs hello.js
It gives me "command not found" error. How can I solve this problem?
Install from package manager:
Personaly I prefer using
npm
(see Arnel Bucio answer)but! I noticed that some of
npm
module still can't see it as global executable.so!
Create new
/usr/share/phantomjs/
directory linkRemove old
/usr/bin/phantomjs
executable link and create the new oneBellow the installation procedure by Julio Napurí https://gist.github.com/julionc
Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
Install these packages needed by PhantomJS to work correctly.
Get it from the PhantomJS website.
Once downloaded, move Phantomjs folder to /usr/local/share/ and create a symlink:
Now, It should have PhantomJS properly on your system.
I have found this simpler way - Phantom dependencies + Npm
and npm
Done.
For PhantomJS version above 1.5, consider this (verbatim copy of the build instructions on the phantom website):
I have done with this.