无法在MacOS Sierra 10.12.1上安装Jekyll

时间:2017-01-18 05:14:33

标签: ruby macos jekyll blogs

我尝试使用

安装 Jekyll
sudo gem install jekyll

但是我收到错误,我在早期的mac版本上找到了解决方案而不是 Sierra

这是输出:

Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
ERROR: Failed to build gem native extension.

current directory: /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.17/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20170117-1518-aaehhb.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.17 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-16/2.0.0/ffi-1.9.17/gem_make.out

感谢提前!

1 个答案:

答案 0 :(得分:0)

您必须安装Ruby DevKit。根据您的Ruby安装,您必须选择正确的安装方式。