I created a new Rails app (v5.2.4.3) using Ruby 2.7.1 and discovered the blizzard of "keyword parameter" warnings endemic in this release.
rbenv install --list
, for some reason, doesn't list Ruby versions beyond 2.4.0. I've manually installed 2.6.6 but am unable to launch it.
This seems like a simple problem. Hints?
rbenv/shims and detect which Ruby version you want to use. They insert the directory for the selected version at the beginning of your $PATH and then execute the corresponding binary. Because of the simplicity of the shim approach, all you need to use rbenv is ~/. rbenv/shims in your $PATH .
Rbenv by itself does not install Ruby implementations at all. You simply give it the path to an already installed Ruby implementation. There are several projects that make installing Ruby implementations easier.
If rbenv is run as the root user then it will be installed to /usr/local/rbenv, otherwise it will be installed to the users ~/. rbenv directory. To make rbenv available in the shell you may need to add the rbenv/shims and rbenv/bin directories to the users PATH.
You can see if it is using rbenv by typing which ruby and it should print something out with . rbenv/ whatever. If not you need to set rbenv as your current ruby.
You should firstly check the version of plugin 'ruby-build':
cd ~/.rbenv/plugins/ruby-build
git log
If you have not ~/.rbenv/plugins
directory, maybe it is too old for the version of your rbenv. First update rbenv:
cd ~/.rbenv
git pull
Then install 'ruby-build' plugin:
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With