2014-04-03 2 views
2

이 페이지의 지침 (https://help.github.com/articles/using-jekyll-with-pages)을 사용하여 Jekyll을 설치하려고합니다. 그러나, 두 번째 단계, bundle install에 다음 출력Jekyll을 설치하려고 할 때 Clang 빌드 오류가 발생했습니다.

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 

이고, 루비 2.0.0p247 버전이다.

나는 이것에 대해 많은 사람들의 질문을 보아 왔지만 그들 중 누구도 똑같은 문제가 있거나 그들에게 제안 된 해결책이 특별히 관련이없는 것처럼 보였습니다. 어떻게 든 bundler가 GCC 대신에 Clang, 나는 이것을 수행하는 방법을 모른다. 내가 가지고있는 한 가지 생각은 메시지가 의미하는 것처럼이 버전을 오류 대신 경고로 처리하기 위해 Clang을 얻는 것입니다. 그러나이 명령은 터미널 명령의 컨텍스트에서 특히 그렇습니다. bundle install입니다. 이 문제를 어떻게 해결할 수 있습니까?

+0

가능한 중복 [루비 보석이 JSON은 매버릭스와 엑스 코드 5.1에서 설치가 실패 - 알 수없는 인수 : '-multiply \ _definedsuppress'] (http://stackoverflow.com/questions/22352838/ruby-gem-install- json-fail-on-mavericks-and-xcode-5-1-unknown-argument-mul) – Nakilon

+0

@ Nakilon이 질문에 대한 답변을 상당히 쉽게 할 수 있다는 점에서 나는 일종의 중복이라는 데 동의하지만, 이 질문은 Github에서 Jekyll 기반 블로그를 설정하기위한 표준 튜토리얼의 문제를 해결하는 간단한 이유 때문에 자체적으로 장점이 있습니다. 나는이 문제를 인터넷 검색으로 찾을 수 없었다. –

답변

4

나는 오류로 경고를 처리하기 위해 ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle install 을 사용했습니다.

0
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install jekyll 
관련 문제