我是 iOS 开发的真正新手,想创建一个新的 GitHub 博客。
我正在关注如何在 Apple M1 Macbook 上安装 jekyll作为参考。
我尝试在我的 M1 Pro Macbook (macOS Monterey 12.6) 上安装 Jekyll,但在安装 Bundler 和 Jekyll 时失败gem install --user-install bundler jekyll(输出如下)。
我已经阅读了许多博主的文章,他们最终成功了。我怎么解决这个问题?请有人帮助我!
[eric@~/blog/hyleedevelop.github.io]$ gem install --user-install bundler jekyll
Successfully installed bundler-2.3.24
Parsing documentation for bundler-2.3.24
Done installing documentation for bundler after 0 seconds
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
current directory: /Users/eric/.gem/ruby/3.0.0/gems/eventmachine-1.2.7/ext
/Users/eric/.rbenv/versions/3.0.0/bin/ruby -I /Users/eric/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r …Run Code Online (Sandbox Code Playgroud)