Skip to content
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

Doctor doesn't find ruby-build after Debian-based install #33

Open
lofidevops opened this issue Aug 15, 2018 · 4 comments
Open

Doctor doesn't find ruby-build after Debian-based install #33

lofidevops opened this issue Aug 15, 2018 · 4 comments

Comments

@lofidevops
Copy link

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
@lofidevops
Copy link
Author

However, the following commands work:

  • rbenv install -l
  • rbenv install 2.4.1

@mislav
Copy link
Member

mislav commented Aug 21, 2018

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?

@lofidevops
Copy link
Author

/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
Copy link
Member

mislav commented Aug 24, 2018

@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!

@mislav mislav transferred this issue from rbenv/rbenv May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants