RVM: how can I dynamically export gem executable directory in my path?

Posted by tommasop on Stack Overflow See other posts from Stack Overflow or by tommasop
Published on 2010-04-16T08:05:15Z Indexed on 2010/04/16 8:13 UTC
Read the original article Hit count: 235

Filed under:
|
|

I installed rvm as root to setup an Ubuntu LTS 8.04 as a web hosting server for my rails apps.

rvm is installed in:

/usr/local/rvm

Everything works fine, gems installation included and users are able to use ruby and gem commands.

sudo gem install rails

My problem is that the gems EXECUTABLE DIRECTORY is not included in my PATH and thus I cannot use rails command.

Is there a way to dynamycally include gems executable directory in my PATH?

Can it be done directly through rvm?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about rvm