Debian + Ruby + Gem + Rails + Mongrel = RubyOnRails
After much frustration, I think I finally have a working installation recipe for RubyOnRails on Debian Linux.
- Install Debian
- Install ssh and sudo
- Remove “root” login from ssh config file
- Create a “source” directory
- Install tools for compiling from various sources
- Download latest Ruby (1.8.5 as of this entry), unpack and install
- Download, unpack, compile and install zlib (not included in testing version of Ruby?)
- Download, unpack, compile and install Ruby Gems (0.9.2 as of this entry)
- Install Rails
- Install Mongrel
- Create a dummy application
- Go to http://your.ip.address:3000/ to see if it works
apt-get install ssh sudo
cd /
mkdir source
apt-get install gcc gcc-3.4-doc gcc-3.4 g++-3.4 make libc6-dev flex openssl curl wget zlib1g-dev libzlib-ruby
cd /source
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.5-p2.tar.gz
tar xzvf ruby-1.8.5-p2.tar.gz
cd ruby-1.8.5
./configure
make
make install
cd ..
wget http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.6.0.tar.gz
tar xzvf ruby-zlib-0.6.0.tar.gz
cd ruby-zlib-0.6.0
ruby extconf.rb
make
make install
cd ..
cd /source/
wget http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz
tar xzvf rubygems-0.9.2.tgz
cd rubygems-0.9.2
ruby setup.rb
gem install rails --include-dependencies
gem install mongrel mongrel_cluster --include-dependencies
cd ~/
rails test
mongrel_rails start
Sources
