-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
cannot find --user-install
d gem executable
#1232
Comments
I'm sorry you're having trouble! Does the If not, where does |
Thanks for the quick reply. I nuked every copy of the gem and did another install while
Should rehash be picking up the gems under |
In case it's relevant, when I have
|
I resolved this by doing Thanks
|
@longspell Ah, sorry for this not being more clear: rbenv does not have support for discovering binstubs under Running rbenv-doctor script actually warns about having |
Actually I'll keep this open so we can explore whether supporting this today is something more stable that could be baked into rbenv 🤔 |
--user-install
d gem executable
Full disclosure, I had a long forgotten Thanks for the cordial responses and looking into this. |
I seem to have the same problem, even though I don't have a
When I uninstall Rubocop, it asks me if I want to remove the executable:
|
OK, it looks like my problem was caused by installing the Homebrew version of Tmuxinator, which installs a full version of Ruby with it:
So I think there was some confusion between the Homebrew and Rbenv versions of Ruby 2.7.1. Uninstalling Tmuxinator and Ruby ( |
Based on your output, it looks like a PATH issue finding the shim ( |
@mislav looks like Rehash should be done on the |
I think when rehash is executed; the script should also also execute Should this be a separate issue as a feature request ? As for the rationale why I am using user installation directory. This works great; except the way Nix works is that it defaults the gem home to the user installation directory. |
Btw I have put up a nixpkg derivation for rbenv: NixOS/nixpkgs#89433 |
I have explored adding support for The support for GEM_HOME still stays in rbenv edge and will be part of the next release. |
Anyone seeing this thread, you might want to take a look at my solution where I moved and made the user dir synonymous to the default dir in |
I have the following ruby versions installed via rbenv,
2.0.0-p648
,2.6.3
and2.6.5
which both2.6
versions haverubocop
installed:Results when using
2.6.3
:Results when using
2.6.5
:Same results for
solargraph
. Seems to be trying to use the~/.rbenv/versions
bin instead of the~/.gems
bin path. This happens even if I am on2.6.5
and dogem install rubocop
. I've even gone so far as togem uninstall rubocop
and remove all versions from2.6.3
, but upongem install rubocop && rbenv rehash
in2.6.5
I'm still toldrubocop
only exists in2.6.3
.The text was updated successfully, but these errors were encountered: