New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rbenv: ruby: command not found after install #399
Comments
You probably haven't select any particular version and it tries falling back to the system Ruby which it doesn't find. Do |
thanks for your reply. when I do rbenv global 1.9.3-p125 i got the same error.. then I tried: $ rbenv versions
$ which -a ruby |
ops. i solved this problem, but i believe that still exists something wrong this happens when i use a version locally (.ruby-version) that is different than global or when i try to use rails, gem or ruby command on folder that not have any .ruby-version file |
Try updating rbenv to the latest version. Please describe your problem in more detail. Which exact combination of circumstance leads to the error? You seem to be running OS X. How come your output for As with all troubleshooting of rbenv, please post your PATH along with other info when debugging. |
It's happening something similar to me, i just installed rbenv and can't use install. Any other command seems to work. rbenv: no such command `install' I'm using Ubuntu 13.04. |
Likewise: post more info about the problem. Take a look at the wiki Troubleshooting section and the doctor script. |
Yes mislav. Im running OSX (mountain lion). $ echo $PATH xcode-tools can use this ruby version (1.8 that ships with OSX), i don't know.. I never tried uninstall it, cuz I aways use rvm or rbenv. |
In the And about your system install of Ruby:
Sure, OS X ships with Ruby 1.8, you don't have to use it and you shouldn't uninstall it. However, the system Ruby should be in |
@ITPROz make sure you add the rbenv init in ~/.profile (I had the same error on Ubuntu 13.04)
|
Closing since this seems to be a system issue, not a bug in rbenv. I feel like I gave enough advice for you to debug your system. |
Oops! When I used "rbenv global 2.0.0-p247", everything goes well!!! |
@ysyfff yeap, i put |
Try |
I installed rbenv to ubuntu 16.04 with below guide |
This worked for me too! |
|
after install and config rbenv following rbenv documentation i got this error:
$ ruby -v
rbenv: ruby: command not found
The `ruby' command exists in these Ruby versions:
1.8.7-p249
1.9.3-dev
1.9.3-p125
why? i already removed RVM installation - the single thing that I found at foruns or similar issues.
The text was updated successfully, but these errors were encountered: