We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
That's great! Thanks for the comment.
hi, thank you so much! I just upgraded to MacOs BigSur and i had this specific problem!
Thank you Ernest! I tried running my Jekyll build tasks for the first time in a long time just after upgrading to Big Sur on the Mac - your fix got me out of this hole!
It helped me! Thank you!
Thank you so much! This solution fixed everything for me, and now I can get back to working on my Jekyll blog while using the dev environment.
Thanks for commenting Binh. I'm happy to hear that the post was helpful.
Thanks for the solution!! I had just updated to Big Sur today but then encountered exactly the same problem when I was trying to build my Jekyll site. After googling for a long time and a lot of trial and error I luckily came across your post, which has worked like a breeze! 👍
I only have one addition: At the moment I encountered the problem, the Xcode website in your link seemed to be down. So I just installed the latest version of Xcode (v12.2) through App Store. But then the `xcode-select` step in your solution needed to be modified to `sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer` (I had to add `sudo` because `xcode-select` complained that `--switch` must be run as root).
Anyway, after that my problem was solved and now I can `bundle install` again. :-)
Hi Julio,
I'm glad you found the post helpful, and thank you for the addition :)
Hi Ernest, Thanks for the post! How do I fix this error without rbenv? I am not using rbenv but I still have this error.
Thanks!
Following set of commands worked for me:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
brew install rbenv ruby-build
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)"
gem install bundler jekyll
I did all the steps and it's not working for me. I have xcode 12.2
> JEKYLL_ENV=production jekyll serve --livereload
Ignoring eventmachine-1.2.7 because its extensions are not built. Try: gem pristine eventmachine --version 1.2.7
Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2
Ignoring http_parser.rb-0.6.0 because its extensions are not built. Try: gem pristine http_parser.rb --version 0.6.0
Ignoring sassc-2.2.1 because its extensions are not built. Try: gem pristine sassc --version 2.2.1
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java.
Traceback (most recent call last):
12: from /usr/local/bin/jekyll:23:in <main>' 11: from /usr/local/bin/jekyll:23:in load'
10: from /Library/Ruby/Gems/2.6.0/gems/jekyll-4.0.0/exe/jekyll:11:in <top (required)="">' 9: from /Library/Ruby/Gems/2.6.0/gems/jekyll-4.0.0/lib/jekyll/plugin_manager.rb:52:in require_from_bundler'
8: from /Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler.rb:149:in setup' 7: from /Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:20:in setup'
6: from /Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/runtime.rb:101:in block in definition_method' 5: from /Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/definition.rb:226:in requested_specs'
4: from /Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/definition.rb:237:in specs_for' 3: from /Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/definition.rb:170:in specs'
2: from /Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/spec_set.rb:80:in materialize' 1: from /Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/spec_set.rb:80:in map!'
/Users/arek/.gem/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/spec_set.rb:86:in block in materialize': Could not find public_suffix-4.0.6 in any of the sources (Bundler::GemNotFound)
Hi! I read your article well!
I've seen the same issue as you, so I've seen it carefully.
I understanded until step 3.
But I don't get it from step 4.
So I should add the two lines below to the .bash_profile?
```
export PATH ="$HOME/.rbenv/bin:$PATH"
export PATH ="$HOME/.rbenv/shims:xcode-select --switch /Applications/Xcode-beta.app/Contents/Dev..."
```
Hi,
No, you don't need to add both lines. You only need to add:export PATH ="$HOME/.rbenv/bin:$PATH.
The 4th line is just to confirm that shims has been added to your path, but I just realized that you don't need shims for it to work, so you can skip that step.
I have updated the post.
Thanks.
Good news, Homebrew now supports BigSur :)