Lubos Programming Blog

Lubos Blog about Programming (mainly Java) and Computers

(Re) installing Ruby on Ubuntu

Posted by lubosp on March 26, 2008

I ran into trouble on Ubuntu 7.10 and had to reinstall Ruby, It wasn’t smooth sailing, so here is what I did to make ruby and gems work again:

  • sudo apt-get remove gem
  • sudo apt-get remove ruby
  • rm -rf /var/lib/gems
  • rm -rf /usr/lib/ruby
  • sudo apt-get install ruby
  • sudo apt-get install rubygems
  • sudo apt-get install irb
  • sudo apt-get install ri
  • sudo apt-get install rdoc
  • sudo apt-get install ruby1.8-dev
  • sudo apt-get install build-essential
  • sudo gem install rake
  • sudo apt-get install rake
  • sudo gem install ruby-debug-ide
  • sudo gem install hpricot -v 0.5
  • sudo gem install activesuport
  • sudo gem install builder
  • sudo gem install hoe
  • sudo gem install rspec
  • sudo gem install ruby-debug-base
  • sudo gem install ruby-debug-ide

Here is a slightly obsolete link http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntu.

Advertisements

One Response to “(Re) installing Ruby on Ubuntu”

  1. Tristan said

    I suppose that it is “proper” to install all this through apt. However, you are blowing the point of rubygems (why even install it??). If you use rubygems at all, you are negating using only apt as package manager.

    Anywho, as we all know, the apt-supplied rubygems is busted. The easiest way to go about what you did (IMO) is to build rubygems from source, then do a simple sudo apt-get remove ruby; sudo apt-get install ruby; gem install rails; gem install hpricot; etc…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: