Skip to content

Instantly share code, notes, and snippets.

@blahah
Last active November 17, 2016 18:55
Show Gist options
  • Save blahah/a8084c0b005e93bd77cb to your computer and use it in GitHub Desktop.
Save blahah/a8084c0b005e93bd77cb to your computer and use it in GitHub Desktop.
linux install phantomJS
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