2013-08-16 5 views
2

필자는 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를 실행하여 개발자 디렉토리 경로를 업데이트하십시오.

감사합니다.

+0

xcode-select를 실행 했습니까? –

+0

나는 그렇게 생각하지 않는다. 어떻게해야합니까? –

+0

오류 메시지 :'오류 :/Developer에 개발자 디렉토리가 없습니다./usr/bin/xcode-select를 실행하여 개발자 디렉토리 경로를 업데이트하십시오.'- usr/bin/xcode-select' 어디서나 필요합니다. –

답변

0

Xcode 4의 환경 설정에서 "명령 행 도구"를 설치해야 할 수도 있습니다.

+0

명령 줄 도구가 설치되어 있지 않습니다. 나는 지금 다운로드 중이다. 희망이 문제를 해결! 일단 그것이 완료되면 업데이 트됩니다 ... –

+0

희망이 문제를 해결! –

+0

이것은 작동하지 않았습니다. 오류 메시지가있는 원래 게시물을 업데이트했습니다. 이제는 어떤 식 으로든 다릅니다. –

관련 문제