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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
82e31cc9f57fcbd5c797ac4f8e3a7551?d=identicon&s=25 Jason White (silliemunkie)
on 2008-12-17 03:28
(Received via mailing list)
Hello All,
   I have just created a new install of Ubuntu 8.10, and have proceeded
to
install all of the necessary packages for Ruby on Rails. I installed
ruby,
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

Jason
4c438a80fc30661ad619ea177cf9cbd0?d=identicon&s=25 Freddy Andersen (Guest)
on 2008-12-17 05: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.