Ruby: bundle does not use correct ruby version

I have ruby installed for previewing a Jekyll website locally. So far, I didn’t use a version manager for ruby. I suspect that ruby was recently updated to version 3.4.

ruby -v
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x86_64-linux-gnu]

I used to run bundle exec jekyll serve to preview my website. Now that results in: env: ‘ruby.ruby3.3’: No such file or directory

My Gemfile is:

source "https://rubygems.org"

# Plugins for the minimal-mistakes theme
gem "github-pages", group: :jekyll_plugins
gem "jekyll-include-cache", group: :jekyll_plugins
gem "webrick"

# For Windows
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] if Gem.win_platform?

I couldn’t find a config file anywhere that uses ruby.ruby3.3. I don’t know whether my question is TW-related or whether I should ask it on a ruby forum.
Does anybody have an idea how I could solve my issue? Thanks in advance!

There was an incorrect shebang in my bundle script: Bundler tries to use wrong version of ruby · Issue #8441 · rubygems/rubygems · GitHub

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.