You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed rbenv via Homebrew, and saved the rbenv-doctor script locally. Running rbenv doctor results in the following rbenv doctor output:
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/local/Cellar/rbenv/1.2.0/libexec/rbenv
/usr/local/bin/rbenv
In this case /usr/local/bin/rbenv is a symlink to /usr/local/Cellar/rbenv/1.2.0/libexec/rbenv.
The validation logic should check for symlinks, and check against the link's target path.
Update:
Running the script directly as per the README (curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash) results in a single path for rbenv.
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting, but rbenv-doctor isn't meant to be installed to PATH and then called as rbenv doctor (i.e., as a rbenv plugin). It was meant to be a standalone script. If you run it as a standalone script, then rbenv won't inject /usr/local/Cellar/rbenv/1.2.0/libexec to PATH and there will be no duplicate entries.
Installed
rbenv
via Homebrew, and saved therbenv-doctor
script locally. Runningrbenv doctor
results in the followingrbenv doctor
output:In this case
/usr/local/bin/rbenv
is a symlink to/usr/local/Cellar/rbenv/1.2.0/libexec/rbenv
.The validation logic should check for symlinks, and check against the link's target path.
Update:
Running the script directly as per the README (
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
) results in a single path forrbenv
.The text was updated successfully, but these errors were encountered: