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?
Or the latest - 32bit version Linux
download from phantomjs website the prebuilt package : http://phantomjs.org/download.html then open a terminal and go to the Downloads folder
then to check install
phantomjs -v
should return1.8.1
I know this is too old, but, just i case someone gets to this question from Google now, you can install it by typing apt-get install phantomjs
Here is what I did on my ubuntu 16.04 machine
and finally when I do
I get 2.1.1
After going through every answer of this thread. I think this is the best solution for installing and running phantomjs in ubuntu.
PhantomJS is on npm. You can run this command to install it globally:
phantomjs -v
should return2.1.1
On Ubuntu for Windows, I found neither
apt-get
nornpm
versions worked for me. What worked was the script from this comment.For ease of use, I pasted the whole thing into a script file called
install_phantomjs.sh
, made it executable (chmod u+x install_phantomjs.sh
), and then ran it (./install_phantomjs.sh
)