0
我正在设置黄瓜为rails。我将它包含在我的Gemfile中并运行了bundle安装。安装黄瓜时发生错误(涉及小黄瓜)
gem 'cucumber-rails'
gem 'database_cleaner'
我得到了这个错误。我该怎么办?
ERROR: Error installing gherkin:
ERROR: Failed to build gem native extension.
/Users/[my_user_name]/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for main() in -lc... *** 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.
安装什么是你的环境像(OS和这样的?)?你有一个可用的C编译器吗? –
OS X Lion,我有gcc。 – jyli7