25
25

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.

CentOSにcapybara-webkitインストール

Last updated at Posted at 2013-12-25

#qt-develインストール

# yum install qt-devel

#qt48-qt-webkit-develインストール

/etc/yum.repos.d/qt48.repo
[epel-qt48]
name=Software Collection for Qt 4.8
baseurl=http://repos.fedorapeople.org/repos/sic/qt48/epel-$releasever/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0
[epel-qt48-source]
name=Software Collection for Qt 4.8 - Source
baseurl=http://repos.fedorapeople.org/repos/sic/qt48/epel-$releasever/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=0
# yum install qt48-qt-webkit-devel

#capybara-webkitインストール

# QMAKE=/opt/rh/qt48/root/usr/lib64/qt4/bin/qmake gem install capybara-webkit

#X Window System & Xvfbサーバインストール
スクリーンショットを撮りたい場合はxvfbサーバが必要。

# yum groupinstall "X Window System"
# yum install xorg-x11-server-Xvfb

#Capistaranoからbundle installする場合は下記を定義

deploy.rb
set :default_environment, {
  'QMAKE' => '/opt/rh/qt48/root/usr/lib64/qt4/bin/qmake'
}

###参考
http://saisa.hateblo.jp/entry/2013/07/15/221851
http://d.hatena.ne.jp/hamajyotan/20120517/1337239976

###環境
CentOS6.4 (さくらのVPS)
Ruby1.9.3

25
25
1

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
25
25

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?