set SDKROOT (only macOS Catalina or later)Permalink
Starting on macOS Catalina (10.15) the headers used for Ruby have been moved from their previous location which results in some gems, including Jekyll to fail installation. This can be solved by setting SDKROOT in your shell configuration to the value provided by xcrun.
export SDKROOT=$(xcrun --show-sdk-path)
SDKROOTis an environment variable so you have two possibilities: execute
export SDKROOT=$(xcrun --show-sdk-path)in your terminal everytime you open one to work with jekyll (env vars are limited to the current terminal session), or add it in your shell configuration file in order to always have it declared (something like
bundler: failed to load command: jekyll (/Users/jared/work/gagesalzano2/vendor/bundle/ruby/2.7.0/bin/jekyll) Traceback (most recent call last): 56: from /Users/jared/.rbenv/versions/2.7.0/bin/bundle:23:in `<main>'
foldcommand in linux?
_eventscollection, and the iCal standard demands newlines (plus then two spaces) after 75 characters
bundle exec jekyll serve --livereloadBut I've been unable to serve the site and receive the following error when I try to
Installing eventmachine 1.2.7 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.Any help would be appreciated.