Skip to content

Instantly share code, notes, and snippets.

@alingogo
Created November 30, 2012 00:38
Show Gist options
  • Save alingogo/4172936 to your computer and use it in GitHub Desktop.
Save alingogo/4172936 to your computer and use it in GitHub Desktop.
centOS6に、Capybara-webkitをインストール
#!/bin/bash
# Download the latest atrpms-repo rpm from
wget http://dl.atrpms.net/el6-x86_64/atrpms/stable/atrpms-repo-6-5.el6.x86_64.rpm
# Install atrpms-repo rpm:
sudo rpm -Uvh atrpms-repo*rpm
# Install atrpms-repo rpm package:
sudo yum install -y atrpms-repo
sudo yum --disablerepo=epel --enablerepo=atrpms-testing install -y qt47-devel qt47-webkit qt47-webkit-devel
sudo ln -s /usr/bin/qmake-qt47 /usr/bin/qmake
# capybara-webkitが依存しているpackageのインストール
sudo yum install -y libxml2-devel libxslt-devel
# Xvfbインストール
sudo yum -y install xorg-x11-server-Xvfb xorg-x11-fonts*
echo "*************"
echo "インストール完了"
echo "*************"
* 前提
** proxy
** sudo + proxy
** centos6
* インストール
wget -qO- https://raw.github.com/gist/4172936/capybara-webkit-install | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment