在Rails 3.0項目中運行OSX Mountain Lion。安裝ffi(1.1.2)時發生錯誤,並且Bundler無法繼續
當試圖更新我的捆綁寶石在Rails項目中,我得到以下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以及命令行工具。
我還需要安裝Xcode的命令行工具。 https://developer.apple.com/downloads/index.action?=Command%20Line%20Tools%20%28OS%20X%20Mountain%20Lion%29 – 2012-08-08 09:49:44