【发布时间】:2011-12-02 17:37:41
【问题描述】:
我正在尝试为导轨设置黄瓜。我将它包含在我的 Gemfile 中并运行了捆绑安装。
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.
【问题讨论】:
-
您的环境是什么样的(操作系统等?)?你有可用的 C 编译器吗?
标签: ruby-on-rails testing rspec cucumber