Jonathans-MacBook-Air-2:hw3-rottenpotatoes Jonathan$ cucumber WARN: Unresolved specs during Gem::Specification.reset: tzinfo (~> 0.3.37) WARN: Clearing out unresolved specs. Please report a bug if this causes problems. You have already activated activesupport 4.0.0, but your Gemfile requires activesupport 3.2.14. Using bundle exec may solve this. (Gem::LoadError) /Users/Jonathan/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup' /Users/Jonathan/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup' /Users/Jonathan/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup' /Users/Jonathan/.rvm/gems/ruby-1.9.3-p448/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `'
但它好像我在這個目錄中有正確的rails版本。黃瓜不起作用,但耙黃瓜
Jonathans-MacBook-Air-2:hw3-rottenpotatoes Jonathan$ rails --version Rails 3.2.14
我對紅寶石很陌生,很困惑爲什麼「耙黃瓜」的作品,但「黃瓜」不在終端。 我不知道如何設置ruby和gems,但我有一種預感,不知何故在我的工作目錄中,ruby被告知使用rails 3.2.14,但命令「cucumber」只能檢測到activitesupport 4.0.0(它我相信是綁在鐵軌上)
非常感謝!
你能顯示你的gemfile嗎? – rb512
你嘗試過「捆綁exec黃瓜」嗎?看起來你已經在你的gemfile外部安裝了rake,並且正在被拾取。但是你沒有在你的gemfile外部安裝黃瓜。 – Anko