//=== http://phantomjs.org/build.html
* install build tools on ubuntu 14.04
$ sudo apt-get install build-essential g++ flex bison gperf ruby perl \
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
libpng-dev libjpeg-dev
??? It is recommend also to install ttf-mscorefonts-installer package.
* download phantomjs-2.x source code or git clone phantomjs.git
$ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-source.zip
$ unzip phantomjs-2.0.0-source.zip -d workfolder
or
$ cd workfolder
workfolder$ git clone git://github.com/ariya/phantomjs.git
//===
workfolder$ cd phantomjs
workfolder/phantomjs$ git checkout 2.0
workfolder/phantomjs$ ./build.sh --jobs 1
*** build.sh by default will launch parallel compile jobs depending on the available CPU cores,
e.g. 4 jobs on a modern hyperthreaded dual-core processor.
but
when building on a virtual machine/server or other limited environment,
reduce the jobs by passing a number,
e.g ./build.sh --jobs 1 to set only one compile job at a time.
2015年4月15日 星期三
phantomjs 2.x build from source
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言