Created
September 9, 2014 09:42
-
-
Save drakakisgeo/b28ec96dab47bff8844a to your computer and use it in GitHub Desktop.
Install phantomjs in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Taken from = https://coderwall.com/p/rs63ea | |
| For 32-bit system use phantomjs-1.9.0-linux-i686.tar.bz2 | |
| For 64-bit system use phantomjs-1.9.0-linux-x86_64.tar.bz2 | |
| Go to the SHARE directory cd /usr/local/share | |
| Push file from google code | |
| sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-i686.tar.bz2 | |
| OR | |
| sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2 | |
| Extract the files to directory | |
| sudo tar xjf phantomjs-1.9.0-linux-i686.tar.bz2 | |
| Move files to Phantom's directory | |
| For x86 OS's do: sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-i686/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-i686/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-i686/bin/phantomjs /usr/bin/phantomjs | |
| For x64 OS's do: sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-x8664/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-x8664/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs | |
| To check if completed, just type: phantomjs --version Must appear: 1.9 | |
| Done, you installed phantomJS on your machine. |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run in headless mode for Codeception===> phantomjs --webdriver=4444