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