I've followed the installation instructions for rbenv: https://github.com/sstephenson/rbenv/
However, the shims are not being used, for instance, when running bundle
it attempts to use the binary located in /usr/local/bin/bundle
rather than in the /.rbenv/
directory (and fails). It complains that my Ruby version should be 1.9.2 or higher - but it is!
Running rbenv rehash
seems to do nothing.
Did you follow "For example, to install Ruby 1.9.2-p290, download and unpack the source, then run"?
You got to visit Ruby website and download the ruby version you want to install. After downloading, extract the archive and change directory to the extracted archive and then run the command
./configure --prefix=$HOME/.rbenv/versions/1.9.3-p194
That should work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.