简体   繁体   English

无法在MacOS Sierra 10.12.1上安装Jekyll

[英]Can't install Jekyll on MacOS Sierra 10.12.1

I'm trying to install Jekyll using: 我正在尝试使用以下方法安装Jekyll

sudo gem install jekyll

but I get a error, I had found a solution on early mac version not for Sierra 但我得到一个错误,我找到了早期mac版本的解决方案而不是Sierra

this is the output: 这是输出:

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

thanks for advance! 谢谢你提前!

You have to install the Ruby DevKit . 你必须安装Ruby DevKit Depending on your installation of Ruby, you have to select the correct way to install it. 根据您的Ruby安装,您必须选择正确的安装方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM