How can I make Rails work when it is installed as a gem in Ubuntu?

Posted by Koning WWWWWWWWWWWWWWWWWWWWWWW on Stack Overflow See other posts from Stack Overflow or by Koning WWWWWWWWWWWWWWWWWWWWWWW
Published on 2010-05-07T13:44:29Z Indexed on 2010/05/07 13:48 UTC
Read the original article Hit count: 240

Filed under:
|
|

I have installed Ruby on Rails in Ubuntu 10.04:

$ sudo gem install rails

$ echo $PATH prints:

/home/koningbaard/.gem/ruby/1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

But when I run $ rails --version, BASH tells me that rails is not currenly installed, and that I can install it with apt-get, which I don't want (I want it installed through gem).

Can anyone help me where I can find it and how I can add it to my PATH? Thanks

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about installation