mattias-ohlsson / gitlab-installer

Installer for GitLab
GNU General Public License v3.0
225 stars 112 forks source link

capybara-webkit dependancies issue... #11

Closed crmacd closed 12 years ago

crmacd commented 12 years ago

This is an excellent script. However due to capybara-webkit dependancies I recently had to add the following to your script to get bundle install to work on CentOS 5.7.

rpm -Uvh http://dl.atrpms.net/el5-x86_64/atrpms/stable/atrpms-repo-5-5.el5.x86_64.rpm

rpm -e --nodeps libX11-1.0.3-11.el5_7.1.i386

yum --enablerepo=atrpms-testing install qt47-webkit-devel

export QMAKE=/usr/bin/qmake-qt47

bundle install

Cheers.

mattias-ohlsson commented 12 years ago

Verified on CentOS 6.3 x64

Installing capybara (1.1.2) 
Installing capybara-webkit (0.12.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb 

Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.12.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.12.1/./gem_make.out
An error occurred while installing capybara-webkit (0.12.1), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '0.12.1'` succeeds before bundling.

Verified on CentOS 5.8 i686

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb 

Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.12.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.2-p290/gems/capybara-webkit-0.12.1/./gem_make.out
An error occurred while installing capybara-webkit (0.12.1), and Bundler cannot continue.
Make sure that `gem install capybara-webkit -v '0.12.1'` succeeds before bundling.
mattias-ohlsson commented 12 years ago

Manual test after script failure on CentOS 6.3 x64

# yum install qt-devel qtwebkit-devel -y
# export PATH=$PATH:/usr/lib64/qt4/bin/
# gem install capybara-webkit -v '0.12.1'
Successfully installed capybara-webkit-0.12.1
1 gem installed
Installing ri documentation for capybara-webkit-0.12.1...
Installing RDoc documentation for capybara-webkit-0.12.1...

Manual test on CentOS 5.8 i686

# source /etc/profile.d/rvm.sh
# rvm use ruby-1.9.2-p290
# source /etc/profile.d/qt.sh
# gem install capybara-webkit -v '0.12.1'
mattias-ohlsson commented 12 years ago

Path to qmake

case $(uname -m) in
  x86_64) export PATH=$PATH:/usr/lib64/qt4/bin/ ;;
  *) export PATH=$PATH:/usr/lib/qt4/bin/ ;;
esac

... or .. source /etc/profile.d/qt.sh

mattias-ohlsson commented 12 years ago

https://github.com/mattias-ohlsson/gitlab-installer/wiki/issue-11

crmacd commented 12 years ago

I had to add the packages to get this script to work for a headless server (no gui) install. Setting the path alone did not work.

mattias-ohlsson commented 12 years ago

Fixed (verified on CentOS 5.8 i686 and x86_64). Thank you!