Topic: Problem installing Rails in Ubuntu

Hello,

I am trying to install Rails on Ubuntu from gem but, when I put the following command:

gem install rails --version 3.0.0

or sudo gem install rails --version 3.0.0


I get the following error:

The program 'gem' can be found in the following packages:
* ruby1.9.1
* rubygems
Try: sudo apt-get install <selected package>



I am trying to install the version 3.0 of rails I am following the course: Ruby on Rails Tutorial: Learn Rails by Example  to install it and the thing is that the guy on the course tell us to install it by rvm not by apt-get.

Cheers!

Last edited by codeman1234 (2012-06-06 08:22:29)

Re: Problem installing Rails in Ubuntu

This http://railscasts.com/episodes/335-deploying-to-a-vps should help you
the railscast covers an ubuntu setup on a production server but can just as easily be applied to a development setup on ubuntu and will probably answer questions you haven't even thought of yet.
Personally I prefer bundling rails with binstubs rather than using rvm. I used to be an rvm fan but bundler does it all for you now

What you want and what you need are too often not the same thing!
When your head is hurting from trying to solve a problem, stop standing on it. When you are the right way up you will see the problem differently and you just might find the solution.
(Quote by me 15th July 2009)

Re: Problem installing Rails in Ubuntu

Hey james,

before anything thanks for the reply and letting you know that your solution solve my problem.

Cheers!!