-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
bash: rbenv: command not found #670
Comments
The steps that you've described all seem good. I suspect that the error "rbenv: command not found" is coming from the Can you tell me the output of |
Hi mislav, here is the output of both commands:
and
So clearly ~/.rbenv/bin isn't on the PATH because it doesn't exist, not sure why. |
The last bit looks like you never cloned rbenv into this location, which is confusing because you said you ran It's pretty hard for me to figure out what's going on on your system because something's obviously not set up well, but it should be pretty easy for you to figure it out by just retracing the installation steps. |
I inspected the ~/.rbenv directory and discovered that the only thin in it was the plugins directory, so I erased ~/.rbenv and cloned it again. This solved the issue. Thanks for your help! |
mislav I'm having the same problem bash rbenv command not found but when i run the command
and when i run the command
what problem could i be facing |
still when i run the
and i try to re- clone it from github
|
Hi @magoo23. One thing that stands out to me from what you shared is that you might have been logged in as the wrong user. It seems that you might have been logged in as root before? Can you ensure you're logged in as ordinary user, and that rbenv is cloned into |
Hi mislav thanks for the reply, do i need to create a new username, this is because i'm logging in as root like you have stated |
Ah, I see. You are always logging in as root and you don't use a regular (non-root) user on that system, right? Then disregard my comment. But I do not know why you get an error. When you get "bash: rbenv: command not found", check your |
@mislav
can u help me? |
@benyaminpy No I can't help you much. You need to install rbenv to a specific directory (such as Please refer to rbenv-installer as a way of automating most of the installation of rbenv. Then, you can use rbenv-doctor to check whether it was successful. |
I had same problem after following https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-centos-7 : On centos 7 sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel cd git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build But this put things in ~/.bash_profile, didn't work. I put relevant path exports to ~/.bashrc and it worked. I also installed rbenv-doctor: |
the suggestion @eshacker gave worked for me as well (ran in to the same issues with bash_profile) |
another +1 for @eshacker. this is the code to use for centos 7:
|
@eshacker Dude Thanks a lot you saved me!! |
Hi guys, RHEL 7.2 had the same problem but after putting the configs in the bash_profile, it worked. |
In your Terminal --> Edit Profile Preferences --> then flag under Title and Command --> Run command as a login shell. Close the terminal and reopen a new one. |
Hi magoo23 you should install ruby_build plugins and you can refer to https://github.com/rbenv/ruby-build#readme |
Hi Magoo23, do you have zsh installed? i had the same issue it was because of zsh |
That was me. |
Running these two commands solved the issue for me.
|
I'm currently running Debian Wheezy. I followed the instructions for the standard rbenv installation on http://octopress.org/docs/setup/rbenv/
Since I'm running Debian, I changed the commands to add rbenv to my .bashrc instead of .bash_profile:
I then ran
source ~/.bashrc
and got the following error:
bash: rbenv: command not found
Any ideas about what I'm doing wrong?
The text was updated successfully, but these errors were encountered: