Lubos Programming Blog

Lubos Blog about Programming (mainly Java) and Computers

Archive for March, 2008

(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.

Posted in java | 1 Comment »