I have just made a fresh install of rvm with rails on a fresh Linux Mint machine
I can see that rails is installed in my gems
gem query --local
*** LOCAL GEMS ***
...other stuff ...
rails (3.2.8)
...other stuff ...
but if I try to run from console I cannot see it
$ rails -v
The program 'rails' is currently not installed. You can install it by typing:
sudo apt-get install rails
this is my PATH variable
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/motta/.rvm/bin
what should I add to the path to have rails available? thank you
UPDATE: This is the output of rvm list
rvm rubies
=* ruby-1.9.3-p286 [ x86_64 ]
# => - current
# =* - current && default
# * - default
The installation has been done following the rvm instructions
https://rvm.io/rvm/install/
解決済み: インストールが完了したとき、rvm が /home/user/.bashrc ファイルを次の行で変更したことがわかりました。
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
したがって、次のものはもう必要ないと思いましたが、そうではありません
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
上記のものを .bashrc に追加すると、問題が解決しました