2014-09-03 2 views
2

내 노트북에서 로컬로 지킬을 실행하려고합니다. 내가 $가 번들 나는 다음과 같은 오류 얻을 설치 입력 한 경우 나는 내가 붙어 https://help.github.com/articles/using-jekyll-with-pages Unfortunaly, 그렇게하기 위해 Github에서의 가이드를 따라 : 나는 루비 여러 번 설치하는 tryedGem :: Ext :: BuildError : 오류 : 젬 네이티브 확장을 빌드하지 못했습니다. Archlinux

Fetching gem metadata from https://rubygems.org/.........Failed to load /etc/gemrc due to permissions problem. 
Resolving dependencies... 

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

/usr/bin/ruby extconf.rb 
checking for main() in -lc... *** 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. 

Provided configuration options: 
--with-opt-dir 
--without-opt-dir 
--with-opt-include 
--without-opt-include=${opt-dir}/include 
--with-opt-lib 
--without-opt-lib=${opt-dir}/lib 
--with-make-prog 
--without-make-prog 
--srcdir=. 
--curdir 
--ruby=/usr/bin/ruby 
--with-redcloth_scan-dir 
--without-redcloth_scan-dir 
--with-redcloth_scan-include 
--without-redcloth_scan-include=${redcloth_scan-dir}/include 
--with-redcloth_scan-lib 
--without-redcloth_scan-lib=${redcloth_scan-dir}/lib 
--with-clib 
--without-clib 
/usr/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an   executable file. (RuntimeError) 
You have to install development tools first. 
from /usr/lib/ruby/2.1.0/mkmf.rb:541:in `try_link0' 
from /usr/lib/ruby/2.1.0/mkmf.rb:556:in `try_link' 
from /usr/lib/ruby/2.1.0/mkmf.rb:742:in `try_func' 
from /usr/lib/ruby/2.1.0/mkmf.rb:973:in `block in have_library' 
from /usr/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for' 
from /usr/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone' 
from /usr/lib/ruby/2.1.0/mkmf.rb:321:in `open' 
from /usr/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone' 
from /usr/lib/ruby/2.1.0/mkmf.rb:321:in `open' 
from /usr/lib/ruby/2.1.0/mkmf.rb:347:in `postpone' 
from /usr/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for' 
from /usr/lib/ruby/2.1.0/mkmf.rb:968:in `have_library' 
from extconf.rb:5:in `<main>' 

extconf failed, exit code 1 

Gem files will remain installed in /tmp/bundler20140903-2231-pkzqqj/RedCloth-4.2.9/gems /RedCloth-4.2.9 for inspection. 
Results logged to /tmp/bundler20140903-2231-pkzqqj/RedCloth-4.2.9/extensions/x86_64-linux/2.1.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. 

을하지만 그렇지 않아 내 문제를 해결. 어떤 힌트가 있습니까?

+0

나는 rvm을 사용하여 ruby를 설치 한 다음'rvm requirements'를 점검하여 필요한 패키지를 설치합니다. 개발자 패키지가 누락 된 것 같습니다. –

+0

$ rvm 요구 사항 아치에 대한 요구 사항을 확인하십시오. 요구 사항 설치에 성공했습니다. 불행하게도 도움이되지 않습니다. – kilian

+0

'pacman -S base-devel'은 어떻습니까? –

답변

5

MacOS에서이 문제가 발생했으며 Xcode 라이센스에 동의하여 문제가 해결되었습니다. 최근에 Xcode를 업데이트했으며 명령 줄 도구를 성공적으로 사용하기 위해 라이센스에 다시 동의해야했습니다.

그냥 실행 후

xcodebuild -license 
0
brew install qt 

다음

bundle install 
1

이 나를 위해 일

gem install RedCloth -v '4.2.9' 

:

bundle config build.nokogiri --use-system-libraries 
bundle install 
관련 문제