Comments (5)
Hi, I am not aware of any behavior change of Rubygems starting with Ruby 3.3. It's possible that this is caused by some configuration on your system.
> gem i solargraph
WARNING: You don't have /home/alex/.gem/ruby/3.3.0/bin in your PATH,
gem executables will not run.
By looking at the output, it looks like the gem install
command chose the "user" installation path, which I do not think is default behavior, and is not supported by rbenv. I could not reproduce this with Ruby 3.3.
Could you check that you don't have a ~/.gemrc
file and that the gem env
command lists RBENV_ROOT/versions/3.3.0/bin
as the EXECUTABLE DIRECTORY?
from rbenv.
gem i solargraph
WARNING: You don't have /home/alex/.gem/ruby/3.3.0/bin in your PATH,
gem executables will not run.By looking at the output, it looks like the
gem install
command chose the "user" installation path, which I do not think is default behavior, and is not supported by rbenv. I could not reproduce this with Ruby 3.3.
This warning was in 3.2, 3.0, 2.7, but without further problems, so I've not reported an issue (and haven't found any similar).
Could you check that you don't have a
~/.gemrc
file and that thegem env
command listsRBENV_ROOT/versions/3.3.0/bin
as the EXECUTABLE DIRECTORY?
Of course.
> cat ~/.gemrc
gem: --no-rdoc --no-ri # --user-install
> gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.5.3
- RUBY VERSION: 3.3.0 (2023-12-25 patchlevel 0) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/alex/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0
- USER INSTALLATION DIRECTORY: /home/alex/.gem/ruby/3.3.0
- RUBY EXECUTABLE: /home/alex/.rbenv/versions/3.3.0/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /home/alex/.rbenv/versions/3.3.0/bin
- SPEC CACHE DIRECTORY: /home/alex/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /home/alex/.rbenv/versions/3.3.0/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/alex/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0
- /home/alex/.gem/ruby/3.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => true
- :bulk_threshold => 1000
- "gem" => "--no-rdoc --no-ri # --user-install"
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/alex/.rbenv/versions/3.3.0/bin
- /usr/lib/rbenv/libexec
- /home/alex/.rbenv/plugins/ruby-build/bin
- /home/alex/.local/share/pnpm
- /home/alex/.nodenv/shims
- /home/alex/.rbenv/shims
- /home/alex/.pyenv/bin
- /home/alex/bin
- /home/alex/.nodenv/bin
- /home/alex/go/bin
- /usr/local/bin
- /usr/bin
- /usr/local/sbin
- /usr/lib/jvm/default/bin
- /usr/bin/site_perl
- /usr/bin/vendor_perl
- /usr/bin/core_perl
It's a pretty fresh rbenv installation. How can I check/fix it?
from rbenv.
Hi @mislav! Is there any update on Ruby 3.3.0? The release was posted 12/25/2023
https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/
from rbenv.
This seems to be a RubyGems v3.5 bug, not a Ruby 3.3 bug. rubygems/rubygems#7393
rbenv works with Ruby 3.3 just fine.
The temporary workaround until RubyGems fixes this is to completely remove --user-install
from your gemrc, instead of just commenting it out.
Thanks for reporting!
from rbenv.
Thank you, I can confirm.
from rbenv.
Related Issues (20)
- version `GLIBC_2.38' not found HOT 2
- `rbenv doctor` warns about multiple paths, one symlinks to the other HOT 1
- homebrew ruby: gem command not found
- Multiple instances of rbenv-install HOT 2
- `gem-rehash` inop for `bundle install`
- GOV UK
- Error when use "gem" HOT 1
- readme installation guide missing step? HOT 1
- install ruby 3.2.0 rbenv/1.1.2/libexec/rbenv: No such file or directory
- bundle command does not do anything. HOT 2
- Issues with Ruby Version Not Matching Gemfile Specification and Bundler Path on macOS Ventura HOT 9
- rbenv.bash: line 8: syntax error near unexpected token `(' HOT 6
- Permission issues on MacOS besides set the ruby version with rbenv HOT 3
- Compile a list of all places where we change what is shown on the printed version of a page
- Zsh completions doesn't display list of available commands when pressing tab HOT 10
- Ruby
- Gem
- macOS installation - last step needs clarification HOT 4
- rbenv init creates duplicates in PATH HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbenv.