2012-07-30 95 views
6

在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以及命令行工具。

回答

相关问题