I have problem installing rails

7 views
Skip to first unread message

Stavros Kefaleas

unread,
Sep 30, 2011, 1:46:08 PM9/30/11
to rubyonra...@googlegroups.com
I tried sudo gem install rails

and I get the following :

[code]
Successfully installed rails-3.1.0
1 gem installed
Installing ri documentation for rails-3.1.0...
file 'lib' not found
Installing RDoc documentation for rails-3.1.0...
file 'lib' not found
Stavros-Kefaleass-MacBook-Pro:~ skiabox$ rails -v
-bash: rails: command not found

[/code]


Any ideas?

Thank you.

--
Posted via http://www.ruby-forum.com/.

Tim Shaffer

unread,
Sep 30, 2011, 1:50:37 PM9/30/11
to rubyonra...@googlegroups.com
Most likely the location of the rails executable is not in your path.

What does your path variable look like?

echo $PATH

Stavros Kefaleas

unread,
Sep 30, 2011, 1:56:25 PM9/30/11
to rubyonra...@googlegroups.com
The only location in my system that has a rails file is the following :

/usr/share/devicemgr/backend/vendor/rails/railties/bin/

Here is my $path variable :

/Users/skiabox/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/bin:/Users/skiabox/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/skiabox/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/skiabox/.rvm/bin:/Users/skiabox/pear/bin:/Applications/TextEdit.app/Contents/MacOS:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/ant/bin:/Users/skiabox/ZendFramework/bin

Reply all
Reply to author
Forward
0 new messages