Skip to content

Jekyll will not run correctly on Macs with the M1 Processor #182

@golaughlin

Description

@golaughlin

When trying to run the bundle exec jekyll serve on a MacBook Pro with the M1 Pro processor, it throws this error:
bundler: failed to load command: jekyll (/usr/local/bin/jekyll) /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.1-x86_64-darwin/lib/nokogiri.rb:32:inrequire': cannot load such file -- nokogiri/nokogiri (LoadError)
from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.1-x86_64-darwin/lib/nokogiri.rb:32:in rescue in <top (required)>' from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.1-x86_64-darwin/lib/nokogiri.rb:11:in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/algolia_html_extractor-2.6.4/lib/algolia_html_extractor.rb:3:in require' from /Library/Ruby/Gems/2.6.0/gems/algolia_html_extractor-2.6.4/lib/algolia_html_extractor.rb:3:in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll/algolia/extractor.rb:3:in require' from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll/algolia/extractor.rb:3:in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll-algolia.rb:12:in require' from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll-algolia.rb:12:in module:Algolia'
from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll-algolia.rb:9:in <module:Jekyll>' from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll-algolia.rb:6:in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:60:in require' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:60:in block (2 levels) in require'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:55:in each' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:55:in block in require'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:44:in each' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:44:in require'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler.rb:175:in require' from /Library/Ruby/Gems/2.6.0/gems/jekyll-3.8.7/lib/jekyll/plugin_manager.rb:51:in require_from_bundler'
from /Library/Ruby/Gems/2.6.0/gems/jekyll-3.8.7/exe/jekyll:11:in <top (required)>' from /usr/local/bin/jekyll:23:in load'
from /usr/local/bin/jekyll:23:in <top (required)>' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli/exec.rb:58:in load'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli/exec.rb:58:in kernel_load' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli/exec.rb:23:in run'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli.rb:479:in exec' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli.rb:31:in dispatch' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli.rb:25:in start' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/exe/bundle:49:in block in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/friendly_errors.rb:103:in with_friendly_errors' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/exe/bundle:37:in <top (required)>'
from /usr/local/bin/bundle:23:in load' from /usr/local/bin/bundle:23:in

'
/Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.1-x86_64-darwin/lib/nokogiri.rb:13:in require': dlopen(/Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.1-x86_64-darwin/lib/nokogiri/2.6/nokogiri.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.1-x86_64-darwin/lib/nokogiri/2.6/nokogiri.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/nokogiri.bundle' (no such file) - /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.1-x86_64-darwin/lib/nokogiri/2.6/nokogiri.bundle (LoadError) from /Library/Ruby/Gems/2.6.0/gems/nokogiri-1.11.1-x86_64-darwin/lib/nokogiri.rb:13:in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/algolia_html_extractor-2.6.4/lib/algolia_html_extractor.rb:3:in require' from /Library/Ruby/Gems/2.6.0/gems/algolia_html_extractor-2.6.4/lib/algolia_html_extractor.rb:3:in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll/algolia/extractor.rb:3:in require' from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll/algolia/extractor.rb:3:in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll-algolia.rb:12:in require' from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll-algolia.rb:12:in module:Algolia'
from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll-algolia.rb:9:in <module:Jekyll>' from /Library/Ruby/Gems/2.6.0/gems/jekyll-algolia-1.4.11/lib/jekyll-algolia.rb:6:in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:60:in require' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:60:in block (2 levels) in require'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:55:in each' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:55:in block in require'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:44:in each' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/runtime.rb:44:in require'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler.rb:175:in require' from /Library/Ruby/Gems/2.6.0/gems/jekyll-3.8.7/lib/jekyll/plugin_manager.rb:51:in require_from_bundler'
from /Library/Ruby/Gems/2.6.0/gems/jekyll-3.8.7/exe/jekyll:11:in <top (required)>' from /usr/local/bin/jekyll:23:in load'
from /usr/local/bin/jekyll:23:in <top (required)>' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli/exec.rb:58:in load'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli/exec.rb:58:in kernel_load' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli/exec.rb:23:in run'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli.rb:479:in exec' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli.rb:31:in dispatch' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/cli.rb:25:in start' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/exe/bundle:49:in block in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/lib/bundler/friendly_errors.rb:103:in with_friendly_errors' from /Library/Ruby/Gems/2.6.0/gems/bundler-2.2.33/exe/bundle:37:in <top (required)>'
from /usr/local/bin/bundle:23:in load' from /usr/local/bin/bundle:23:in '
`

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