GitHub Pages: Jekyll Serve Issue - Stack Overflow

admin2025-04-27  2

I've followed tutorials to the letter but have stumbled upon an error I cannot resolve. I have my local repo ready and I want to execute Jekyll to host my site locally.

When I run:

bundle exec jekyll serve

I get this error, I don't know how to resolve this:

C:/Ruby34-x64/lib/ruby/gems/3.4.0/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.

C:/Ruby34-x64/lib/ruby/gems/3.4.0/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.
C:/Ruby34-x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require': cannot load such file -- csv (LoadError)
        from C:/Ruby34-x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
        from C:/Ruby34-x64/lib/ruby/gems/3.4.0/gems/jekyll-4.3.4/lib/jekyll.rb:28:in '<top (required)>'
        from C:/Ruby34-x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
        from C:/Ruby34-x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
        from C:/Ruby34-x64/lib/ruby/gems/3.4.0/gems/jekyll-4.3.4/exe/jekyll:8:in '<top (required)>'
        from C:/Ruby34-x64/bin/jekyll:36:in 'Kernel#load'
        from C:/Ruby34-x64/bin/jekyll:36:in '<main>'

I've followed tutorials to the letter but have stumbled upon an error I cannot resolve. I have my local repo ready and I want to execute Jekyll to host my site locally.

When I run:

bundle exec jekyll serve

I get this error, I don't know how to resolve this:

C:/Ruby34-x64/lib/ruby/gems/3.4.0/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.

C:/Ruby34-x64/lib/ruby/gems/3.4.0/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.
C:/Ruby34-x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require': cannot load such file -- csv (LoadError)
        from C:/Ruby34-x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
        from C:/Ruby34-x64/lib/ruby/gems/3.4.0/gems/jekyll-4.3.4/lib/jekyll.rb:28:in '<top (required)>'
        from C:/Ruby34-x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
        from C:/Ruby34-x64/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
        from C:/Ruby34-x64/lib/ruby/gems/3.4.0/gems/jekyll-4.3.4/exe/jekyll:8:in '<top (required)>'
        from C:/Ruby34-x64/bin/jekyll:36:in 'Kernel#load'
        from C:/Ruby34-x64/bin/jekyll:36:in '<main>'
Share Improve this question edited Jan 11 at 14:36 jonrsharpe 122k30 gold badges268 silver badges476 bronze badges asked Jan 11 at 13:43 PBI DataVizzlePBI DataVizzle 1757 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

As the message says:

You can add logger to your Gemfile or gemspec to silence this warning.

We can add the missing gems to Gemfile with bundle add (I had 3 missing):

bundle add csv
bundle add logger
bundle add base64
bundle install && bundle exec jekyll serve

Answer found here: https://github.com/jekyll/jekyll/issues/9741 - it appears to be a bug in the latest version of Ruby. Workable version on 3.3.6

转载请注明原文地址:http://anycun.com/QandA/1745709378a91134.html