Forum: Ruby on Rails error when installing rails on new linode instance

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jason W. (Guest)
on 2008-12-17 04:28
(Received via mailing list)
Hello All,
   I have just created a new install of Ubuntu 8.10, and have proceeded
install all of the necessary packages for Ruby on Rails. I installed
gems, and rails, but when i run rails -v, i get the following error:

root@li41-22:~# rails -v
-bash: rails: command not found

any guidance would be greatly appreciated

Freddy A. (Guest)
on 2008-12-17 06:37
(Received via mailing list)
which rails
find / -name rails

Is it installed in /usr/local/ ?

do you have /usr/local/bin/ in your path?

echo $PATH

Is rails installed?

gem list

Did you install the gems under a user ? maybe you should have done

sudo gem install rails

Just like on a mac if you use gem install on a none privileged user it
will install the gems in .gem in the users home directory... And most
likely you do not have that directory in your path...
This topic is locked and can not be replied to.