0
我正在從黃瓜書一些黃瓜測試工作。我已經得到了嘗試使用事務處理的代碼,並沒有與下面的代碼文件:使用Ruby 1.9.2在Mac OS X 10.6.8無法找到所需的service_manager寶石
require 'service_manager'
ServiceManager.start
這是。當這個文件執行,我得到如下:
no such file to load -- service_manager (LoadError)
/opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
/opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
/opt/local/lib/ruby1.9/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/Users/gpollice/MyCucumber/ATMBookExample/features/support/services.rb:6:in `<top (required)>'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/cucumber-1.1.2/lib/cucumber/rb_support/rb_language.rb:143:in `load'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/cucumber-1.1.2/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/cucumber-1.1.2/lib/cucumber/runtime/support_code.rb:171:in `load_file'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/cucumber-1.1.2/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
的service_manager寶石安裝在/opt/local/lib/ruby1.9/gems/1.9.1/gems爲是該應用程序使用其他寶石。直到我爲這個迭代添加代碼之前,沒有任何問題。我查找了爲什麼沒有找到寶石的原因,只是不明白爲什麼。任何幫助,將不勝感激。
你可以添加'$ LOAD_PATH'的價值? – Linuxios