2014-12-18 1 views
0

번들의 일부로 사용하고 sudo를 사용하여 설치를 시도했지만 매번 같은 오류 메시지가 나타납니다. 나는 현재 Ruby 2.0.0 and Rails 4.1.8에 있습니다. 무슨 일이 일어나고 있는지 잘 모르겠습니다. 정확한 오류 메시지는 다음과 같습니다.Ruby가 번들의 일부로 json -v 1.8.1을 설치하지 않았습니다. 오류 : 보석 기본 확장자를 빌드하지 못했습니다.

Fetching gem metadata from https://rubygems.org/ ..........
Resolving dependencies...
Using rake 10.4.2 Using i18n 0.6.11

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

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20141218-80226-brqexc.rb extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.1 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/json-1.8.1/gem_make.out An error occurred while installing json (1.8.1), and Bundler cannot continue. Make sure that gem install json -v '1.8.1' succeeds before bundling.

감사의 말.

+1

내가 실행했습니다

맥에 대한
sudo apt-get install ruby-dev 

, 다음과 같은 요지로 봐 가치가 보인다 요세미티로 업그레이드 한 후 유사한 문제로 gcc 버전은 그 모두의 뿌리였습니다. 'brew rm gcc46','brew install libxml2' 그리고 나서 'brew install libxslt' 도움이되었습니다. 나는 그 과정에서'양조 의사 (brew doctor) '를 많이했다. – eebbesen

+0

xcode 및 명령 도구 설치가 도움이 될 수 있습니다. – eebbesen

+0

요세미티로 업그레이드 한 후에도이 문제가 발생했습니다. xcode 및 명령 도구가 설치되어있는 경우 xcode를 열고 명령 줄 도구가 제대로 작동하기 전에 조건에 동의해야합니다. –

답변

관련 문제