1. Compile Ruby from source.
First, install all the libraries you’ll need to compile Ruby.
yum install gcc zlib libxml2-devel yum install gcc yum install zlib yum install zlib-devel yum install openssl yum install openssl-devel
My particular application has problems with Ruby 1.9.2, so I compiled Ruby 1.8.7 instead. This can be downloaded from ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz
Unpack the source code for Ruby. Configure and install it with:
./configure make make install
/usr/local/bin to the beginning of your
2. Install Ruby Gems.
Downloadcd the latest Ruby Gems package and unpack it. I got mine from http://production.cf.rubygems.org/rubygems/rubygems-1.7.1.tgz . Change to the directory and run:
3. Install Rails and rake
gem install rails rake
If all goes well, you should now have Rails and rake.
*builder-2.1.2 has an invalid value for @cert_chain*
Downgrade Rubygems to version 1.6.2 with the following command.
gem update --system 1.6.2
sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!
Compile sqlite from source:
wget http://www.sqlite.org/sqlite-amalgamation-126.96.36.199.tar.gz tar zxvf sqlite-amalgamation-188.8.131.52.tar.gz cd sqlite-amalgamation-184.108.40.206 ./configure make make install gem install sqlite3
LoadError: no such file to load – openssl
- Install openssl and openssl-devel.
yum install openssl openssl-devel
- Go to your Ruby source directory and run the following commands:
cd ext/openssl ruby extconf.rb make make install
LoadError: no such file to load – readline
yum install readline-devel
Change to your Ruby source directory and run the following:
cd ext/readline ruby extconf.rb make make install
You can’t access port 80 from another computer.
Port 80 (the web server port) is blocked by default on Redhat Enterprise Linux 5.5. Edit
/etc/sysconfig/iptables to allow it, adding a line like:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
Make sure you put it above the
REJECT all line.
Load your changes with