I installed Ruby and then RVM, and then configured Rails.
It all works when I call it from the original terminal. But when I try to call various commands from new terminals, the system just gives an error message such as this one:
$rails server
The program 'rails' is currently not installed. You can install it by typing:
sudo apt-get install rails
Why does that happen? Is there some global variable which needs to be set? I am using Ubuntu by the way.
Example of how/where gems are installed:
Now, the Rails gem is now installed in 2 directories (1 for each of the Ruby versions)
Now in order to set a default version of Ruby (instead of typing
rvm useevery time you open a terminal), you can run:See the documentation for more information about default.
Some other commands:
rvm list defaultrvm listAlso note do not use
sudowith RVM!Hope that clears things up!