Quantcast
Channel: Y.A.M の 雑記帳
Viewing all articles
Browse latest Browse all 415

Ubuntu に PhantomJS を入れる

$
0
0
Ubuntu Lucid (10.04) でビルドしたバイナリが http://phantomjs.org/download.htmlからダウンロードできます。

Lucid 以降のディストリビューションであれば動くそうです。
このバイナリのインストールにあたっては、Qt, WebKit など他のライブラリのインストールは必要ありません。

Lucid より古いシステムでは、ソースからビルドする必要があります。

$ cd /usr/local/share
$ sudo cp ~/Download/phantomjs-1.7.0-linux-x86_64.tar.bz2 .
$ sudo tar -xjvf phantomjs-1.7.0-linux-x86_64.tar.bz2
$ sudo rm phantomjs-1.7.0-linux-x86_64.tar.bz2
$ sudo ln -s /usr/local/share/phantomjs-1.7.0-linux-x86_64/ /usr/local/share/phantomjs
$ sudo ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs

$ which phantomjs
/usr/local/bin/phantomjs

$ phantomjs -v
1.7.0

$ phantomjs
phantomjs>


PhantomJS Quick Start




Viewing all articles
Browse latest Browse all 415

Trending Articles