I like to put my complied software in /opt vs /usr/local. Make sure rpm version is not installed.
install ruby:
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz ./configure --prefix=/opt/ruby-1.8.7-p174 sudo make && sudo make install
user alternatvies to create sym links:
/usr/sbin/alternatives --install /usr/bin/ruby ruby /opt/ruby-1.8.7-p174/bin/ruby 1 \ --slave /usr/bin/rdoc rdoc /opt/ruby-1.8.7-p174/bin/rdoc \ --slave /usr/bin/ri ri /opt/ruby-1.8.7-p174/bin/ri \ --slave /usr/bin/irb irb /opt/ruby-1.8.7-p174/bin/irb \ --slave /usr/bin/erb erb /opt/ruby-1.8.7-p174/bin/erb \ --slave /usr/bin/testrb testrb /opt/ruby-1.8.7-p174/bin/testrb \ --slave /usr/bin/gem gem /opt/ruby-1.8.7-p174/bin/gem \ --slave /usr/bin/rake rake /opt/ruby-1.8.7-p174/bin/rake
make sure current ruby is set to 1.8.7: /usr/sbin/alternatives –config ruby
install rubygems:
wget http://rubyforge.org/frs/download.php/70696/rubygems-1.3.7.tgz sudo ruby setup.rb
install gems (No docs):
gem install --no-rdoc --no-ri rails gem install --no-rdoc --no-ri passenger gem install --no-rdoc --no-ri mysql gem install --no-rdoc --no-ri rack -v=1.0.1
Passenger said I needed to install curl-dev (yum install curl-devel)
install passenger apache module:
/opt/ruby-1.8.7-p174/lib/ruby/gems/1.8/gems/passenger-3.0.0/bin/passenger-install-apache2-module
modify your httpd conf file
LoadModule passenger_module /opt/ruby-1.8.7-p174/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/apache2/mod_passenger.so PassengerRoot /opt/ruby-1.8.7-p174/lib/ruby/gems/1.8/gems/passenger-3.0.0 PassengerRuby /opt/ruby-1.8.7-p174/bin/ruby
Install redmine according to Docs
Comments are closed.