Rubygems 尝试安装Jekyll时出现异常生成错误

Rubygems 尝试安装Jekyll时出现异常生成错误,rubygems,clang,jekyll,redcloth,Rubygems,Clang,Jekyll,Redcloth,我正在尝试使用本页()上的说明安装Jekyll。但是,在第二步,bundle install,将输出以下内容 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for main() in -lc... yes creating

我正在尝试使用本页()上的说明安装Jekyll。但是,在第二步,
bundle install
,将输出以下内容

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
checking for main() in -lc... yes
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling redcloth_attributes.c
compiling redcloth_inline.c
compiling redcloth_scan.c
linking shared-object redcloth_scan.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [redcloth_scan.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /var/folders/39/fxww36m16ddggmf4plpl3mv40000gn/T/bundler20140403-1735-6tlte3/RedCloth-4.2.9/gems/RedCloth-4.2.9 for inspection.
Results logged to /var/folders/39/fxww36m16ddggmf4plpl3mv40000gn/T/bundler20140403-1735-6tlte3/RedCloth-4.2.9/extensions/universal-darwin-13/2.0.0/RedCloth-4.2.9/gem_make.out
An error occurred while installing RedCloth (4.2.9), and Bundler cannot continue.
Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling.
clang——版本
输出

Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
在我的机器上,Ruby是版本
2.0.0p247


我已经看到许多其他人对此提出的问题,但他们都没有相同的问题,也没有向他们建议的解决方案似乎特别相关,除了让bundler以某种方式使用
GCC
而不是
Clang
,我不知道如何做到这一点。我的一个想法是让
Clang
将其视为警告而不是错误,正如消息所暗示的那样,在这个版本中是可能的,但我也不知道如何做到这一点,特别是在像
bundle install
这样的终端命令的上下文中。如何修复此问题?

我在将来的bundle安装中使用了
ARCHFLAGS=-Wno error=未使用的命令行参数硬错误

将错误视为警告

我在将来的bundle安装中使用了
ARCHFLAGS=-Wno error=未使用的命令行参数硬错误
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll

将错误视为警告

@Nakilon的可能重复虽然我同意这是一种重复,因为你可以很容易地用这个问题回答我的问题,但我认为这个问题本身确实有价值,原因很简单,它修复了在Github上建立基于Jekyll的博客的规范教程的问题。通过谷歌搜索这个问题我也找不到这个问题。可能是@Nakilon的重复。虽然我同意这是一种重复,因为你可以很容易地用这个问题回答我的问题,我认为这个问题本身确实有价值,原因很简单,它修复了在Github上建立基于Jekyll的博客的规范教程的一个问题。我也找不到这个问题。
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll