I have rvm installed on my PC with the default ruby gemset being 2.4.1
rvm list
ruby-2.4.0 [ x86_64 ]
=* ruby-2.4.1 [ x86_64 ]
ruby-2.6.3 [ x86_64 ]
# => - current
# =* - current && default
# * - default
I want to install rails 5 however sprockets
fails to install requiring 2.5 ruby. However rails 5 should work with any ruby above 2.2.2:
gem install rails -v 5.1.4
Fetching: activesupport-5.1.4.gem (100%)
Successfully installed activesupport-5.1.4
Fetching: actionview-5.1.4.gem (100%)
Successfully installed actionview-5.1.4
Fetching: actionpack-5.1.4.gem (100%)
Successfully installed actionpack-5.1.4
ERROR: Error installing rails:
sprockets requires Ruby version >= 2.5.0.
I don't care about the rails 5 version. The newer the better, but all versions do give me the errors
Any idea why this might happen?