Installing rails 3.0.0 on Ubuntu 10.4

How I did all Wrong

  • I had ruby 1.8.7 and Installed RVM as ROOT, not the gem
  • I did the above without knowing about the working of RVM
  • I had ruby 1.8 and 1.9 installed, and the gem had a confused env
  • Lots of other confusing paths and installs

Now, the good part.. Simple rails 3.0 install

How I did it work*:

  • Removed RVM by the great command sudo rvm implode
  • Also ruby1.9, sudo aptitude remove ruby1.9
  • Updated my gems:

sudo gem install rubygems-update
gem env | grep 'EXECUTABLE DIRECTORY'
sudo `gem env | grep 'EXECUTABLE DIRECTORY' | ruby -e "puts  gets.split(': ', 2).last"`/update_rubygems

  • Installed Rails 3.0.0, sudo gem install rails -v3.0.0
  • Made a project on rails, rails new dum; cd dum
  • Installed mysql gem, bundle install
  • rails server

Great Refs:
http://blog.costan.us/2010/04/rails-3-development-setup-for-ubuntu.html
http://stackoverflow.com/questions/3558656/how-to-remove-rvm-ruby-version-manager-from-my-system
http://stackoverflow.com/questions/3722701/getting-crazy-over-rails-3-rvm-gems
http://rubyonrails.org/screencasts/rails3/active-relation-active-model

*: I have not tried it for real, with several gems, I will update if anything fails It is all working just fine

About these ads

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