Installing PhantomJS on the Raspberry Pi

First lets make sure you are in your home directory.

cd ~


git clone

It’s a big binary. She’ll be busy for a bit.

Now we’ll want to apply permissions to run it

chmod -x ~/phantomjs-raspberrypi/bin/phantomjs


chmod 775 ~/phantomjs-raspberrypi/bin/phantomjs

Now symlink it your bin directory.

sudo ln -s /home/pi/phantomjs-raspberrypi/bin/phantomjs /usr/bin/

Now you can use the ‘phantomjs’ command!

GitHub Repo