Last active
November 17, 2016 18:55
-
-
Save blahah/a8084c0b005e93bd77cb to your computer and use it in GitHub Desktop.
linux install phantomJS
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
echo "installing phantomJS" | |
if [ `getconf LONG_BIT` = "64" ] | |
then | |
echo "64-bit system detected" | |
PHANTOMVER=phantomjs-1.9.7-linux-x86_64 | |
else | |
echo "32-bit system detected" | |
PHANTOMVER=phantomjs-1.9.7-linux-i686 | |
fi | |
wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOMVER.tar.bz2 && \ | |
tar xvf $PHANTOMVER.tar.bz2 && \ | |
cd $PHANTOMVER && \ | |
sudo mv bin/phantomjs /usr/local/bin/ | |
cd .. | |
rm -rf $PHANTOMVER $PHANTOMVER.tar.bz2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment