Last active
November 19, 2015 18:45
-
-
Save v-pravin/6e8e09f722a10f6c42a2 to your computer and use it in GitHub Desktop.
This file contains 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
$ lsb_release -a | |
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch | |
Distributor ID: CentOS | |
Description: CentOS release 6.7 (Final) | |
Release: 6.7 | |
Codename: Final | |
$ sudo yum -y install gcc gcc-c++ make flex bison gperf ruby \ | |
openssl-devel freetype-devel fontconfig-devel libicu-devel sqlite-devel \ | |
libpng-devel libjpeg-devel | |
$ git clone git://github.com/ariya/phantomjs.git | |
$ cd ./phantomjs | |
$ git checkout 1.9 | |
$ ./build.sh | |
$ sudo cp ./bin/phantomjs /usr/local/bin/. | |
$ cd | |
$ phantomjs | |
phantomjs> Ctrl+C | |
$ git clone https://github.com/n1k0/casperjs.git | |
$ cd ./casperjs | |
$ git checkout 1.1-beta3 | |
$ cd .. | |
$ sudo mv casperjs/ /opt/casperjs | |
$ sudo ln -s /opt/casperjs/bin/casperjs /usr/local/bin/ | |
$ casperjs | |
CasperJS version 1.1.0-beta3 at /opt/casperjs, using phantomjs version 1.9.8 | |
Usage: casperjs [options] script.[js|coffee] [script argument [script argument ...]] | |
casperjs [options] test [test path [test path ...]] | |
casperjs [options] selftest | |
casperjs [options] __selfcommandtest | |
Options: | |
--verbose Prints log messages to the console | |
--log-level Sets logging level | |
--help Prints this help | |
--version Prints out CasperJS version | |
--engine=name Use the given engine. Current supported engine: phantomjs and slimerjs | |
Read the docs http://docs.casperjs.org/ | |
References: | |
1. http://phantomjs.org/build.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment