2

このページ ( https://help.github.com/articles/using-jekyll-with-pages ) の指示に従って Jekyll をインストールしようとしています。ただし、2 番目のステップで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 --version出力

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 は version2.0.0p247です。

GCCこれに関する他の多くの人の質問を見てきましたが、同じ問題を抱えている人は誰もいませんし、提案された解決策も特に関連しているようには見えませんClang。達成する方法を知りません。私が持っている1つのアイデアはClang、メッセージがこのバージョンで可能であることを示唆しているため、これをエラーではなく警告として扱うことですが、特に次のような端末コマンドのコンテキストでは、どうすればよいかわかりませんbundle install. どうすればこれを修正できますか?

4

2 に答える 2

4

以前ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install はエラーを警告として扱っていました。

于 2014-04-03T19:09:36.240 に答える