For the record, and for those of my friends who are going to participate in the Rails Rumble next weekend: here's how you install Rails 3 on your Ubuntu Karmic system. (10.10, known as Maverick, is supposed to arrive tomorrow and might make this post obsolete. But I won't be risking an upgrade before the weekend.)
- Install Ruby; apt contains the required version:
sudo apt-get install ruby
- Uninstall RubyGems, because we'll install a more recent version from source:
sudo apt-get remove rubygems
- Install RubyGems from source:
cd /tmp wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz tar xzf rubygems-1.3.7.tgz cd rubygems-1.3.7 sudo ruby setup.rb sudo ln -s gem1.8 /usr/bin/gem
- Install Rails:
sudo gem install rails
3 comments:
Thank you! this was very useful!
sudo ruby setup.rb gives
rubygems.rb:1190:in `': undefined method `load_defaults' for Gem::Specification:Class (NoMethodError)
from :1:in `require'
from :1:in `'
What is wrong?
No idea. What are you still running a three-and-a-half year old Ubuntu for?
Post a Comment