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

Installation via apt-get ends up with multiple rbenv executables in PATH #35

Closed
j-adamczyk opened this issue Jul 26, 2021 · 2 comments
Closed

Comments

@j-adamczyk
Copy link

On Ubuntu 20.04 files in /usr/bin/rbenv and /bin/rbenv are synchronized. Because of this the installation for Linux from readme fails.
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash prints:

Checking for `rbenv' in PATH: multiple
  You seem to have multiple rbenv installs in the following locations.
  Please pick just one installation and remove the others.
  
  /usr/bin/rbenv
  /bin/rbenv

This is expected, since there are 2 identical files, rbenv, in both those directories. Because of the synchronization I can't just delete one of those files. Since this is a symlink anyway (/usr/bin/rbenv -> ../lib/rbenv/libexec/rbenv*), this should be allowed and just one file should be used.

@mislav mislav transferred this issue from rbenv/rbenv Jul 26, 2021
@mislav mislav changed the title apt-get installation not working correctly on Ubuntu 20.04 Installation via apt-get ends up with multiple rbenv executables in PATH Jul 26, 2021
@Ragnoroct
Copy link
Contributor

I've submitted a pull request that fixes it.

It uses the inode number to detect if the "duplicate" binaries from which -a are actually the same file.

@mislav
Copy link
Member

mislav commented Jul 28, 2021

Thanks @Ragnoroct!

@mislav mislav closed this as completed Jul 28, 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

4 participants
@mislav @Ragnoroct @j-adamczyk and others