Giter Club home page Giter Club logo

Comments (5)

mislav avatar mislav commented on May 23, 2024 1

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.

AlexWayfer avatar AlexWayfer commented on May 23, 2024

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 the gem env command lists RBENV_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.

sarabpj avatar sarabpj commented on May 23, 2024

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.

mislav avatar mislav commented on May 23, 2024

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.

AlexWayfer avatar AlexWayfer commented on May 23, 2024

Thank you, I can confirm.

from rbenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.