Skip to content

[Bug]:bundler: failed to load command: jekyll #9774

Open
@d-jiao

Description

@d-jiao

Operating System

MacOS Sequoia 15.3.1

Ruby Version

ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]

Jekyll Version

I get the same error message as in "Current Behavior" when running bundle exec jekyll -v

GitHub Pages Version

No response

Expected Behavior

I expected my site to be built when running
bundle exec jekyll serve

Current Behavior

This is the error message I got:

dj2526@Bob homepage % bundle exec jekyll serve  
/Users/dj2526/.gem/ruby/3.4.1/gems/jekyll-4.3.4/lib/jekyll.rb:26: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add logger to your Gemfile or gemspec to silence this warning.
/Users/dj2526/.gem/ruby/3.4.1/gems/jekyll-4.3.4/lib/jekyll.rb:28: warning: csv was loaded from the standard library, but is not part of the default gems starting from Ruby 3.4.0.
You can add csv to your Gemfile or gemspec to silence this warning.
bundler: failed to load command: jekyll (/Users/dj2526/.gem/ruby/3.4.1/bin/jekyll)
/Users/dj2526/.rubies/ruby-3.4.1/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require': cannot load such file -- csv (LoadError)
        from /Users/dj2526/.rubies/ruby-3.4.1/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/jekyll-4.3.4/lib/jekyll.rb:28:in '<top (required)>'
        from /Users/dj2526/.rubies/ruby-3.4.1/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
        from /Users/dj2526/.rubies/ruby-3.4.1/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/jekyll-4.3.4/exe/jekyll:8:in '<top (required)>'
        from /Users/dj2526/.gem/ruby/3.4.1/bin/jekyll:25:in 'Kernel#load'
        from /Users/dj2526/.gem/ruby/3.4.1/bin/jekyll:25:in '<top (required)>'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:58:in 'Kernel.load'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:58:in 'Bundler::CLI::Exec#kernel_load'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/cli/exec.rb:23:in 'Bundler::CLI::Exec#run'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/cli.rb:455:in 'Bundler::CLI#exec'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/command.rb:28:in 'Bundler::Thor::Command#run'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in 'Bundler::Thor::Invocation#invoke_command'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor.rb:527:in 'Bundler::Thor.dispatch'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/cli.rb:35:in 'Bundler::CLI.dispatch'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/vendor/thor/lib/thor/base.rb:584:in 'Bundler::Thor::Base::ClassMethods#start'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/cli.rb:29:in 'Bundler::CLI.start'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/exe/bundle:28:in 'block in <top (required)>'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/lib/bundler/friendly_errors.rb:117:in 'Bundler.with_friendly_errors'
        from /Users/dj2526/.gem/ruby/3.4.1/gems/bundler-2.5.21/exe/bundle:20:in '<top (required)>'
        from /Users/dj2526/.gem/ruby/3.4.1/bin/bundle:25:in 'Kernel#load'
        from /Users/dj2526/.gem/ruby/3.4.1/bin/bundle:25:in '<main>'

Relevant log output

Code Sample

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions