2014-01-24 4 views
3

설치 kgio에 유니콘 보석 실패 내가 번들 실행할 때 다음과 같은 오류 얻을 설치 :은 내 보석 파일에 유니콘 보석을 추가하려고

Installing kgio (2.8.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

     /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb 
checking for CLOCK_MONOTONIC in time.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. 

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/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby 
/usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) 
You have to install development tools first. 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:686:in `macro_defined?' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:822:in `block in have_macro' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:254:in `open' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:254:in `open' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:280:in `postpone' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for' 
     from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:821:in `have_macro' 
     from extconf.rb:5:in `<main>' 


Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p392/gems/kgio-2.8.1 for inspection. 
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p392/gems/kgio-2.8.1/ext/kgio/gem_make.out 
An error occurred while installing kgio (2.8.1), and Bundler cannot continue. 
Make sure that `gem install kgio -v '2.8.1'` succeeds before bundling. 

전에 내가 가지고있는 유니콘 보석 등을을 번들 설치를 실행하는 데 문제가 없습니다. kgio 2.8.1을 설치하는 동안 실패하는 것 같습니다. Stackoverflow 및 다른 곳에서 솔루션을 찾았습니다. 가장 일반적인 솔루션은 Xcode 개발 도구를 설치하는 것 같습니다. 나는 이것을했고 그것은 문제를 해결하지 못했다.

Mac OSX 10.9.1 Mavericks with Ruby 1.9.3p392가 실행 중입니다. 정말이 문제를 해결할 필요가 있습니다. 어떤 도움이라도 대단히 감사하겠습니다.

+0

나는 매버릭스에서 똑같은 문제를 겪고있다. – camelCase

답변

0

Ruby 2.1로 업데이트되어 문제가 해결되었습니다.