39
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Linux]PhantomJSをインストールする

Last updated at Posted at 2014-08-27
  • PhantomJSをLunux(AmazonLinux)にインストールします
  • インストールと言ってもバイナリDLして配置するだけでした

環境

  • 確認したのは AmazonLinux
  • 他のLinuxでもいけるんじゃないかと思います

手順

  1. こちら から最新のものをDL(本記事記述時点(2014/08/27)の最新は1.9.7)

$ cd ~/
$ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2

  1. 解凍

$ cd /usr/local/src/
$ sudo tar jxf ~/phantomjs-1.9.7-linux-x86_64.tar.bz2

  1. 配置

$ sudo ln -s phantomjs-1.9.7-linux-x86_64 phantomjs
$ sudo ln -s /usr/local/src/phantomjs/bin/phantomjs /usr/local/bin/phantomjs

確認

$ phantomjs -v
1.9.7

補足

  • 公式 を見てビルドしようとしたらとんでもなく時間がかかってげんなりししてたら、実はバイナリが提供されてたというオチだった
  • githubからソースコードをcloneして、build.shを叩くも2時間経ってもまだ終わらなーいという状況
  • 環境はAWSのEC2、t1.small
  • 10時間以上かかったって人も http://devlup.com/javascript/setup-phantomjs-on-amazon-ec2-instance/4468/
39
37
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
39
37

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?