Skip to content

Instantly share code, notes, and snippets.

@lupomontero
Last active August 29, 2015 14:22
Show Gist options
  • Save lupomontero/9df6f28dd6eb4b31d1eb to your computer and use it in GitHub Desktop.
Save lupomontero/9df6f28dd6eb4b31d1eb to your computer and use it in GitHub Desktop.
Install pre-compiled PhantomJS 1.9.8 on SmartOS
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