LoginSignup
35
32

More than 5 years have passed since last update.

PhantomJSをCentOS6にインストール

Last updated at Posted at 2014-10-02
su -
cd /usr/local/src/
wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
tar jxfv phantomjs-1.9.0-linux-x86_64.tar.bz2
cp phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/

あらかんたーん
5分くらいだった。

phantomjs --versionと打ってみて、バージョンが表示されたらOK。

最初32bitなのに64bitのファイルをダウンロードしていて、
バイナリファイルを実行できませんエラーに阻まれた。情けないのう。。。
ちゃんと32bit用のファイルを解凍して同じ手順を踏んだら解決した。

公式ダウンロードページ
http://phantomjs.org/download.html

35
32
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
35
32