Question

Is it just me or did RVM once install symlinks in /usr/local/rvm/bin for the current Ruby and Gem commands?

This seems to have gone away in a recent RVM update.

Now all my scripts that use /usr/local/rvm/bin/ruby are failing.

How do I get the symlink feature back?

Was it helpful?

Solution

RVM 1.25 disables default pollution of rvm_path/bin, you still can generate the links using:

rvm wrapper ruby-name           # or for default:
rvm wrapper default --no-prefix

Source: https://github.com/wayneeseguin/rvm/issues/2456

OTHER TIPS

Unfortunately, looks like Leor's answer no longer works, but you could do it manually. First of all ensure that which ruby points to the rvm dir and then

sudo ln -sf "$(which ruby)" /usr/local/bin/ruby
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top