필자는 Rails 환경에 상당히 익숙하며 다른 프로젝트를 작성하여 일부 코드로 재생하려고했습니다. 'rails new myproject'를 실행하면이 오류가 발생했습니다. 나는 행운이없는 해결책을 찾기 위해 구글을 둘러 보았다. '번들 설치'를 실행할 때 내 Rails 앱을 만들려면이 문제를 어떻게 피할 수 있습니까?오류 : gem 네이티브 확장을 빌드하지 못했습니다. JSON Gem
I 실행있어 :
OSX 10.7.5
레일 3.1.1
루비 1.8.7 (2012-02-08 패치 레벨 358) 유니버설 darwin11.0]
Using coffee-script (2.2.0) Using rack-ssl (1.3.3) Installing json (1.8.0) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb creating Makefile
make xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -DJSON_GENERATOR -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -O3 -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -c generator.c Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path. make: * [generator.o] Error 1
Gem files will remain installed in /Users/me/.bundler/tmp/1673/gems/json-1.8.0 for inspection. Results logged to /Users/me/.bundler/tmp/1673/gems/json-1.8.0/ext/json/ext/generator/gem_make.out An error occured while installing json (1.8.0), and Bundler cannot continue. Make sure that
gem install json -v '1.8.0'
succeeds before bundling.
이 줄을 알았지 만 이것이 의미하는 바를 모릅니다 .. 오류 :/Developer에 개발자 디렉토리가 없습니다./usr/bin/xcode-select를 실행하여 개발자 디렉토리 경로를 업데이트하십시오.
감사합니다.
xcode-select를 실행 했습니까? –
나는 그렇게 생각하지 않는다. 어떻게해야합니까? –
오류 메시지 :'오류 :/Developer에 개발자 디렉토리가 없습니다./usr/bin/xcode-select를 실행하여 개발자 디렉토리 경로를 업데이트하십시오.'- usr/bin/xcode-select' 어디서나 필요합니다. –