黄瓜无法在我的机器上运行

发布于 2024-12-05 18:14:39 字数 4148 浏览 0 评论 0原文

黄瓜不知何故无法在我的机器上运行。现在在运行时

bundle show cucumber 

我得到了

/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6

,但是当我现在尝试在我的应用程序上运行这些功能时,我收到以下错误

bundle exec cucumber features

Using the default profile...
no such file to load -- crack/core_extensions (LoadError)
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/pusher-0.6.0/lib/pusher/channel.rb:1
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/pusher-0.6.0/lib/pusher.rb:67
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `require'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
/Users/gauravsingharoy/work/tiatros/config/application.rb:7
/Users/gauravsingharoy/work/tiatros/config/environment.rb:2:in `require'
/Users/gauravsingharoy/work/tiatros/config/environment.rb:2
/opt/local/lib/ruby/gems/1.8/gems/cucumber-rails-1.0.2/lib/cucumber/rails.rb:5:in `require'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-rails-1.0.2/lib/cucumber/rails.rb:5
/Users/gauravsingharoy/work/tiatros/features/support/env.rb:7:in `require'
/Users/gauravsingharoy/work/tiatros/features/support/env.rb:7
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/rb_support/rb_language.rb:143:in `load'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/support_code.rb:171:in `load_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime.rb:137:in `load_step_definitions'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime.rb:39:in `run!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/cucumber:14
/opt/local/lib/ruby/gems/1.8/bin/cucumber:19:in `load'
/opt/local/lib/ruby/gems/1.8/bin/cucumber:19

Cucumber is somehow not working on my machine. Now on running

bundle show cucumber 

I am getting

/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6

but when I now try to run the features on my application I am getting the following error

bundle exec cucumber features

Using the default profile...
no such file to load -- crack/core_extensions (LoadError)
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/pusher-0.6.0/lib/pusher/channel.rb:1
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/opt/local/lib/ruby/gems/1.8/gems/pusher-0.6.0/lib/pusher.rb:67
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `require'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
/opt/local/lib/ruby/gems/1.8/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
/Users/gauravsingharoy/work/tiatros/config/application.rb:7
/Users/gauravsingharoy/work/tiatros/config/environment.rb:2:in `require'
/Users/gauravsingharoy/work/tiatros/config/environment.rb:2
/opt/local/lib/ruby/gems/1.8/gems/cucumber-rails-1.0.2/lib/cucumber/rails.rb:5:in `require'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-rails-1.0.2/lib/cucumber/rails.rb:5
/Users/gauravsingharoy/work/tiatros/features/support/env.rb:7:in `require'
/Users/gauravsingharoy/work/tiatros/features/support/env.rb:7
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/rb_support/rb_language.rb:143:in `load'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/support_code.rb:171:in `load_file'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime.rb:137:in `load_step_definitions'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/runtime.rb:39:in `run!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/cucumber-1.0.6/bin/cucumber:14
/opt/local/lib/ruby/gems/1.8/bin/cucumber:19:in `load'
/opt/local/lib/ruby/gems/1.8/bin/cucumber:19

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

前事休说 2024-12-12 18:14:39

看起来捆绑程序找不到您的依赖项。您似乎正在使用系统范围的 ruby​​ 安装,这是不推荐的。

我建议您安装 rvm 并使用 rvm 的方法重新安装 ruby​​,然后在一切配置完毕并正常工作后再次运行bundle。

Looks like bundler can't find your dependencies. You appear to be using a System-wide ruby installation which is unrecommended.

I recommend you install rvm and reinstall ruby using rvm's method then running bundle again once everything is configured and working correctly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文