【问题标题】:Unable to install Jekyll with gem install无法使用 gem install 安装 Jekyll
【发布时间】:2016-10-10 12:33:10
【问题描述】:

我正在尝试使用以下命令在我的 Mac 上安装 Jekyll:

sudo gem install jekyll

但是我得到了错误:

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

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.

我在这里做错了什么?

【问题讨论】:

标签: rubygems jekyll


【解决方案1】:

关键信息有:

You have to install development tools first.

看看https://stackoverflow.com/a/9353468/500526

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-12-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-25
    • 1970-01-01
    • 2020-12-23
    • 1970-01-01
    相关资源
    最近更新 更多