Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building site: "bundler: failed to load command: jekyll" #207

Open
MarkWieczorek opened this issue Jan 18, 2021 · 1 comment
Open

Comments

@MarkWieczorek
Copy link
Contributor

I've been using this theme for a couple years now with only minor problems. Today I tried rebuilding my site, but I encountered an error that I've never seen before.

I am using macOS with brew, so the first thing I did was to reinstall ruby, jekyll and bundle. I then deleted the Gemfile.lock file and vendor folder. However, whenever I rebuild using bundle exec jekyll serve I get the following error:

docs git:(develop) ✗ bundler exec jekyll serve
Configuration file: /Users/lunokhod/SphericalHarmonics/shtools-git/docs/_config.yml
            Source: /Users/lunokhod/SphericalHarmonics/shtools-git/docs
       Destination: /Users/lunokhod/SphericalHarmonics/shtools-git/docs/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
   GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
                    done in 6.453 seconds.
 Auto-regeneration: enabled for '/Users/lunokhod/SphericalHarmonics/shtools-git/docs'
bundler: failed to load command: jekyll (/Users/lunokhod/SphericalHarmonics/shtools-git/docs/vendor/ruby/3.0.0/bin/jekyll)
/Users/lunokhod/SphericalHarmonics/shtools-git/docs/vendor/ruby/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError)
	from /Users/lunokhod/SphericalHarmonics/shtools-git/docs/vendor/ruby/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve/servlet.rb:3:in `<top (required)>'
[...]

Does anyone have an idea of what the problem might be? (The github warning is irrelevant.)

@MarkWieczorek
Copy link
Contributor Author

This might be an issue with Ruby 3.0.0: I tried rebuilding using Ruby 2.7 and it works. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant