Skip to content

rbenv doctor warns about multiple paths, one symlinks to the other #48

@devstuff

Description

@devstuff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions