I'm a NOVICE user of Linux and using Linux mint 17.1
I've reinstalled Linux Mint 20 time in last 3 days for that issue but could not fix it
I'm trying to install ruby on rails using rvm what happened is if start a new Linux installation and try installing gems and ruby and stuff in one terminal session it installed successfully as soon as I close the terminal session I can't get those gems.
By reinstalling it over 20 times in last 3 days I've searched on the web too. I've been told to put environment variable in /etc/environment
I echoed path in that session and pasted that in /etc/environment
file.
even now I don't get my installed gems
when I typed rvm -v
I get the following errors
Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see:
https://github.com/wayneeseguin/rvm/issues/3212
Warning! PATH is not properly set up, $GEM_HOME is not set,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use ruby-2.2.2'.
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
I'm a very novice person when it comes to working with terminal I can run few basic commands to work with ruby.
I would like to know
- How to set PATH
- How to set GEM_HOME
- How to set GEM_PATH
Below is my full path
echo $PATH
/home/sharif/.rvm/gems/ruby-2.2.2/bin:/home/sharif/.rvm/gems/ruby-2.2.2@global/bin:/home/sharif/.rvm/rubies/ruby-2.2.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/sharif/.rvm/bin