Home > howto, rails > Ruby on Rails on Ubuntu Edgy

Ruby on Rails on Ubuntu Edgy

September 30th, 2006

I updated my laptop to Ubuntu 6.10 Beta (Edgy Eft) and it’s working great. So far I’ve had less problems than the beta of Dapper, but it has only been two day. My first experience off the tested path of synaptic packages is ruby on rails. Edgy comes with a rails package, but like Dapper, no gems. So here is the install of gems, and the rails from withing gems, on Ubuntu 6.10 Edgy Eft.

# sudo apt-get install ruby ruby1.8-dev irb rdoc
# wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
# tar xvfz rubygems-0.9.0.tgz
# cd rubygems-0.9.0
# sudo ruby setup.rb
# sudo gem install rails

I did get an rdoc error, but everything else installed fine, so I ignored it and continued on. This error is fixed by adding rdoc to the apt-get command above. It is here for historical purposes, and perhaps will help someone.

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’: no such file to load — rdoc/rdoc (LoadError)

Other Notes:

Categories: howto, rails
  1. Alex
    October 28th, 2006 at 22:27 | #1

    You need to make this

    $ sudo apt-get ruby1.8-dev irb

    and after

    $ sudo gem install rails

  2. October 29th, 2006 at 19:58 | #2

    Updated, thanks for the tip. I also stubled upon the “Offical RoR” Ruby on Rails for Ubuntu instructions here: http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntu

  3. November 11th, 2006 at 16:12 | #3

    I’m not sure if those errors are to be ignored. At least I’m unable to install the mongrel gem, but that doesn’t nessecarily have anything to do anything with this.

  4. November 23rd, 2006 at 15:17 | #4

    Here’s a howto that actually works: http://dnite.wordpress.com/2006/10/24/ruby-on-rails-on-ubuntu/
    (At least it gave me no errors durin installation, and installing and running mongrel worked.)

  5. November 24th, 2006 at 01:55 | #5

    Thanks for that link Simon, the trick to get rdoc working appears to be installing it through Ubuntu’s Apt instead of Gems. I’ve updated the post with this info.

Comments are closed.