Doctor doesn't find ruby-build after Debian-based install
lofidevops opened this issue · comments
David commented
Steps to reproduce:
sudo apt install rbenv
(install rbenv)ruby-build --version
(confirm ruby-build also installed)which ruby-build
(confirm ruby-build location)- Run rbenv-doctor
What should happen:
- ruby-build returns version & location
- Doctor results all "OK", including ruby-build
What happens instead:
- ruby-build returns version 20170726
which ruby-build
returns/usr/bin/ruby-build
- Doctor returns:
Checking for `rbenv' in PATH: /usr/bin/rbenv
Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: not found
Unless to plan to add Ruby versions manually, you should install ruby-build.
Please refer to https://github.com/rbenv/ruby-build#installation
Counting installed Ruby versions: none
There aren't any Ruby versions installed under `/home/user/.rbenv/versions'.
You can install Ruby versions like so: rbenv install 2.2.4
Checking RubyGems settings: OK
Auditing installed plugins: OK
Notes:
Operating system: PureOS 8 (~= Debian testing)
$ which rbenv
/usr/bin/rbenv
$ rbenv --version
rbenv 1.1.1
David commented
However, the following commands work:
rbenv install -l
rbenv install 2.4.1
Mislav Marohnić commented
However, the following commands work:
Thank you for reporting! That is interesting. Are you able to locate where rbenv-install
executable was placed by debian packages?
David commented
/usr/bin/rbenv
points to /usr/lib/rbenv/libexec/rbenv
And rbenv-install
is amongst other files in /usr/lib/rbenv/libexec
...
/usr/lib/rbenv/libexec $ ls
rbenv* rbenv-exec* rbenv-hooks* rbenv-local* rbenv-root* rbenv-sh-shell* rbenv---version* rbenv-version-file-write* rbenv-versions*
rbenv-commands* rbenv-global* rbenv-init* rbenv-prefix* rbenv-shims* rbenv-uninstall* rbenv-version-file* rbenv-version-name* rbenv-whence*
rbenv-completions* rbenv-help* rbenv-install* rbenv-rehash* rbenv-sh-rehash* rbenv-version* rbenv-version-file-read* rbenv-version-origin* rbenv-which*
Mislav Marohnić commented
@kwill Thanks for looking that up! Perhaps we should amend rbenv-doctor to include the location of {rbenv-install-location}/libexec/
when searching for rbenv-install. PR welcome!