Thursday, May 07, 2009

Install the latest stable Ruby and Rails on Ubuntu 9.04

Install the prerequisite packages using the following command.
$ sudo apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev

Install Ruby
Download the latest version of ruby
$ wget

Untar the package
$ tar xzf stable-snapshot.tar.gz

Compile and install
$ cd ruby/
$ ./configure
$ make
$ sudo make install

Create a symbolic link to ruby
$ sudo ln -s /usr/local/bin/ruby /usr/bin/ruby

Install RubyGems

$ wget

Compile and install
$ tar xzvf rubygems-1.3.2.tgz
$ cd rubygems-1.3.2
$ sudo ruby setup.rb

Install Rails
$ sudo gem install rails


Post a Comment

Subscribe to Post Comments [Atom]

<< Home