rbenv: : No such file or directory
Hi all. I have problem after update rbenv. I runing git pull origin in ~/.rbenv. Аfter that, when I run any commands for example: $ rbenv install --list. I got error : No such file or directory. Have you any idea fix it? rbenv-doctor.sh output https://gist.github.com/avastor/ffabb80ed048c3c69061
========================================================================
$ ls -ls ~/.rbenv/bin/
total 4
0 lrwxrwxrwx 1 user group 16 Nov 3 13:42 rbenv -> ../libexec/rbenv
4 -rwxrwxr-x 1 user group 747 Nov 3 13:40 ruby-local-exec
========================================================================
~/.rbenv$ git remote -v
origin https://github.com/sstephenson/rbenv.git (fetch)
origin https://github.com/sstephenson/rbenv.git (push)
~/.rbenv$ git branch
* master
~/.rbenv$ git log -1
commit 7e0e85bdda092d94aef0374af720682c6ea8999d
Author: Mislav Marohnić <mislav.marohnic@gmail.com>
Date: Sun Oct 19 18:06:09 2014 +0200
Avoid JRuby warning during rehash Rubygems plugin
As it seems, JRuby 1.7 complains on stderr every time you invoke `system`:
warning: executable? does not in this environment and will return a dummy value
It doesn't seem to complain when backtics are used. It's safe to use
backticks here because `rbenv rehash` doesn't output anything on stdout,
and the exit status of the command is irrelevant.
========================================================================
# my ~/.bashrc
export RBENV_ROOT="${HOME}/.rbenv"
if [ -d "${RBENV_ROOT}" ]; then
export PATH="${RBENV_ROOT}/bin:${PATH}"
eval "$(rbenv init -)"
fi
========================================================================
$ . ~/.bashrc
: No such file or directory
========================================================================
$ type rbenv
rbenv is hashed (/home/user/.rbenv/bin/rbenv)
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 46 (21 by maintainers)
@lakhanbrowserstack @casperbrike We’ve fixed this in rbenv 1.2.0 https://github.com/rbenv/rbenv/releases/tag/v1.2.0, however it requires a manual
rbenv rehash
after the upgrade. Sorry for the inconvenience; hopefully it won’t happen again@lakhanbrowserstack I got the same problem and fixed it with the following command:
rbenv rehash
.@samsoft00 rbenv will not work on a Windows environment, even though Unix-style is emulated through a tool such as cygwin. It needs a proper Unix environment.