I have installed Ruby via RVM on Linux Mint 11. It seems to have installed fine: when I enter type rvm | head -1, I get "rvm is a function" back. Entering ruby -v gives me 1.9.2p290. I can run ruby scripts from the bash terminal window fine. However, when I try to run the same scripts from say gvim (I've got a shortcut mapped to "ruby ") or geany or gedit (ditto), I get "ruby: command not found" (in gvim) or "ruby: not found" (in geany or gedit).
Here's more information: "which ruby" gives me: $HOME/.rvm/rubies/ruby-1.9.2-p290/bin/ruby. $HOME/.rvm/rubies/ruby-1.9.2-p290/bin is in my path in my .bashrc. On another Linux Mint 11 machine, where all works fine, "which ruby" gives me $HOME/.rvm/bin/ruby. Also, on the machine where all is fine, I have a $HOME/bin folder that I don't know where it came from, but was created the same day as my .rvm folder. It contains among other things, links to shell scripts in the $HOME/.rvm/wrappers folder.
rvm get headon both machines, and follow the instructions it outputs, to make sure your RVM is current. Then runrvm infoon both machines and compare the output. - the Tin Man$HOME/.profile, the following line exists:# set PATH so it includes user's private bin if it exists if[-d "$HOME/bin"] ; then PATH="$HOME/bin:$PATH" fiOf course, it does exist on the machine that works; not on the one that doesn't. - Buffalo Billionifstatement to my.profilefile for$HOME/.rvm/bin. It now works! Apparently it seems that mint loads the.profilefile conditionally; I'll have to do more research on that, but at least I'm to a working point now. Thanks for all the pointers. - Buffalo Billion