I have installed Ruby (2.3.1) and Rails (5.0.0) with gem v2.6.4 on Arch Linux. Recently I've had need of working with Ruby 2.3.0 and Rails 4.2.6, so I tried to install RVM with these steps:
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
$ \curl -sSL https://get.rvm.io | bash -s stable
$ source /home/user/.rvm/scripts/rvm
$ rvm install ruby-2.3.0
$ rvm use 2.3.0
I restarted my PC and in my shell tried to install rails with this:
$ rvm rubygems current
I got this message:
Installed rubygems 2.5.1 is newer than 2.4.8 provided with installed ruby, skipping installation, use --force to force installation.
After that, when I run this command:
$ rails -v
I got:
/usr/bin/env: ‘ruby_executable_hooks’: No such file or directory
Supposedly this code resolved the problem (I don't know really what I'm doing):
$ sudo gem install --user-install executable-hooks
It seems I cannot install an old version of rails, so how to work this $#@&~$ RVM? The documentation in RVM is lacking for me. This should be easy like virtualenv for Python.
Other questions:
- What are the RVM gemsets for?
- When y HOW to use them under my situation?
- Must I add this code
source /home/warcayac/.rvm/scripts/rvm
in my.bashrc
file?
Please, any help because I am starting to miss Windows @_@!