Skip to content

Bundler tries to use wrong version of ruby #8441

@LKirst

Description

@LKirst

Describe the problem as clearly as you can

I'm on openSUSE TW and so far I don't use a version manager for ruby. When I call bundle, I get an error that it cannot find ruby3.3:

$ bundle install
env: ‘ruby.ruby3.3’: No such file or directory

Did you try upgrading rubygems & bundler?

When I try to run gem update --system, I get a permission denied error, but if I'm not mistaken, I've updated gem with zypper as part of :

$ zypper if devel_ruby
Loading repository data...
Reading installed packages...


package 'devel_ruby' not found.

Information for pattern devel_ruby:
-----------------------------------
Repository      : Main Repository (OSS)
Name            : devel_ruby
Version         : 20170319-2.17
Arch            : x86_64
Vendor          : openSUSE
Installed       : Yes
Visible to User : Yes
Summary         : Ruby Development
Description     : 
    Tools and libraries for software development using the Ruby programming language.
Contents        : 
    S  | Name                           | Type    | Dependency
    ---+--------------------------------+---------+-----------
    i+ | patterns-devel-ruby-devel_ruby | package | Required
    i  | ruby                           | package | Required
    i  | ruby3.4-devel                  | package | Required

Here is my version of gem:

$ gem -v
3.6.2

Trying to update bundler results in the same error as bundle install

bundle update --bundler
env: ‘ruby.ruby3.3’: No such file or directory

Here is my RubyGems Environment:

gem env -v
RubyGems Environment:
  - RUBYGEMS VERSION: 3.6.2
  - RUBY VERSION: 3.4.1 (2024-12-25 patchlevel 0) [x86_64-linux-gnu]
  - INSTALLATION DIRECTORY: /home/myusername/gems
  - USER INSTALLATION DIRECTORY: /home/myusername/.local/share/gem/ruby/3.4.0
  - RUBY EXECUTABLE: /usr/bin/ruby.ruby3.4
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /home/myusername/gems/bin
  - SPEC CACHE DIRECTORY: /home/myusername/.cache/gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
     - ruby
     - x86_64-linux-gnu
  - GEM PATHS:
     - /home/myusername/gems
     - /home/myusername/.local/share/gem/ruby/3.4.0
     - /usr/lib64/ruby/gems/3.4.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => 1
     - :backtrace => true
     - :bulk_threshold => 1000
     - :benchmark => false
     - :install => "--format-executable --no-user-install"
     - "install" => "--format-executable --no-user-install"
     - :format_executable => true
     - :update => "--format-executable --no-user-install"
     - "update" => "--format-executable --no-user-install"
     - :sources => ["https://rubygems.org"]
  - REMOTE SOURCES:
     - https://rubygems.org
  - SHELL PATH:
     - /home/myusername/gems/bin
     - /home/myusername/gems/bin
     - /home/myusername/.local/bin
     - /home/myusername/bin
     - /usr/local/bin
     - /usr/bin
     - /bin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions