Installing CaspeJS from source is always fun, so I’m going to tell you how.
Step 1 – Get the source code
Getting the source code from CasperJS website. As of 16-OCT-2015 when I write this, the following command worked. When a new version is released.. this link might go away.. so.. a little hunting might be needed on your part.
The CaseperJS website is located HERE ( http://casperjs.org/ ).
wget https://github.com/n1k0/casperjs/zipball/1.1-beta3/n1k0-casperjs-1.1-beta3-0-g4f105a9.zip
Step 2 – unpack the files
Unpack the files and prepare for compiling:
unzip n1k0-casperjs-1.1-beta3-0-g4f105a9.zip