10
11

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.

phantomjs2.0のインストール

Last updated at Posted at 2015-08-03

phantomjsのインストール

インストール方法

自分でコンパイルする場合

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 2.0
./build.sh

それなりの環境で30分くらいかかる
出来上がったバイナリをパスの通ったディレクトリにコピーする(/usr/local/binなど)

ビルド済みバイナリを使う場合

yum install http://you21979-storage.github.io/centos-rpm/centos6/phantomjs-2.0-0.x86_64.rpm

fontのインストール

文字化けするのでフォントを入れる

yum install ipa-gothic-fonts.noarch ipa-mincho-fonts.noarch
fc-cache -fv

動作確認

phantomjs -v
10
11
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
10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?