Last active
August 29, 2015 14:22
-
-
Save lupomontero/9df6f28dd6eb4b31d1eb to your computer and use it in GitHub Desktop.
Install pre-compiled PhantomJS 1.9.8 on SmartOS
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
PREFIX=/opt/local | |
SRC=$PREFIX/src/phantomjs | |
DOWNLOAD_FILE=phantomjs-1.9.8-smartos-i386.tgz | |
DOWNLOAD_URL=https://us-east.manta.joyent.com/pkgsrc/public/packages/SmartOS/phantomjs/$DOWNLOAD_FILE | |
# Create directory where we are going to put phantomjs' source files | |
mkdir -p $SRC | |
# Go into dir, download and extract archive | |
cd $SRC | |
wget $DOWNLOAD_URL | |
tar -xzvf $DOWNLOAD_FILE | |
# Link binary | |
ln -s $SRC/bin/phantomjs $PREFIX/bin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment