Last active
March 9, 2018 20:00
-
-
Save AntoscencoVladimir/886e08e513328b9c065926fd0a67f830 to your computer and use it in GitHub Desktop.
Install phantomjs/casperjs Linux
This file contains 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
#!/bin/bash | |
# `` sudo sh install.sh `` | |
echo Phantomjs | |
cd /usr/local/share | |
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
sudo tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
sudo mv phantomjs-2.1.1-linux-x86_64 phantomjs-2.1.1 | |
sudo ln -s /usr/local/share/phantomjs-2.1.1/ /usr/local/share/phantomjs | |
sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs | |
echo Casperjs | |
cd /usr/local/share | |
sudo wget https://github.com/casperjs/casperjs/archive/1.1.4-1.zip | |
sudo unzip 1.1.4-1.zip | |
sudo mv casperjs-1.1.4-1 casperjs | |
cd casperjs | |
sudo ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs | |
echo Remove files | |
cd /usr/local/share | |
sudo rm -rf phantomjs-2.1.1-linux-x86_64.tar.bz2 1.1.4-1.zip | |
echo Phantomjs | |
phantomjs --version | |
echo Casperjs | |
casperjs --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment