Rails 3.0 프로젝트에서 OSX Mountain Lion을 실행 중입니다. ffi (1.1.2)를 설치하는 동안 오류가 발생했으며 Bundler를 계속 진행할 수 없습니다.
나는 다음과 같은 errror를 얻을 레일 프로젝트에 들러 내 보석을 업데이트하려고 :An error occured while installing ffi (1.1.2), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.1.2'` succeeds before bundling.
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.
/Users/victorstan/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb
checking for ffi.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.
...
You have to install development tools first.
내가 엑스 코드는 명령 줄 도구뿐만 아니라 설치되어 있습니다.
또한 Xcode 용 명령 줄 도구를 설치해야했습니다. https://developer.apple.com/downloads/index.action?=Command%20Line%20Tools%20%28OS%20X%20Mountain%20Lion%29 –