CALABASH - 无法加载此类文件 -- bundler/setup (LoadError)
CALABASH - cannot load such file -- bundler/setup (LoadError)
我正在尝试 运行 在我的新机器 (Mac OS 10.10.1) 上进行我的葫芦测试,但是当我 运行 命令时我有这个输出:
cannot load such file -- bundler/setup (LoadError)
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/ptv618/Documents/cardapp_ui_tests/features/support/env.rb:2:in `<top (required)>'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/rb_support/rb_language.rb:95:in `load'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/rb_support/rb_language.rb:95:in `load_code_file'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:82:in `each'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime.rb:184:in `load_step_definitions'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime.rb:42:in `run!'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/cli/main.rb:47:in `execute!'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/bin/cucumber:13:in `<top (required)>'
/usr/bin/cucumber:23:in `load'
/usr/bin/cucumber:23:in `<main>'
谁能帮帮我?我认为那是因为与配置相关的原因,因为我可以 运行 之前进行此测试。
我正在使用 Ruby 2.0.0.
谢谢!
我认为问题在于您使用的是 Apple 系统 ruby,它需要 sudo
才能安装 gems。我可能错了。你能用你试图执行的确切命令更新你的问题吗?
葫芦维护者建议使用托管 ruby 环境,如 rbenv 或 ruby。 [1] 如果管理 ruby 不是你的风格,你可以覆盖 GEM_HOME
和 GEM_PATH
[2]
我正在尝试 运行 在我的新机器 (Mac OS 10.10.1) 上进行我的葫芦测试,但是当我 运行 命令时我有这个输出:
cannot load such file -- bundler/setup (LoadError)
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/Users/ptv618/Documents/cardapp_ui_tests/features/support/env.rb:2:in `<top (required)>'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/rb_support/rb_language.rb:95:in `load'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/rb_support/rb_language.rb:95:in `load_code_file'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:82:in `each'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime.rb:184:in `load_step_definitions'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/runtime.rb:42:in `run!'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/lib/cucumber/cli/main.rb:47:in `execute!'
/Library/Ruby/Gems/2.0.0/gems/cucumber-1.3.18/bin/cucumber:13:in `<top (required)>'
/usr/bin/cucumber:23:in `load'
/usr/bin/cucumber:23:in `<main>'
谁能帮帮我?我认为那是因为与配置相关的原因,因为我可以 运行 之前进行此测试。
我正在使用 Ruby 2.0.0.
谢谢!
我认为问题在于您使用的是 Apple 系统 ruby,它需要 sudo
才能安装 gems。我可能错了。你能用你试图执行的确切命令更新你的问题吗?
葫芦维护者建议使用托管 ruby 环境,如 rbenv 或 ruby。 [1] 如果管理 ruby 不是你的风格,你可以覆盖 GEM_HOME
和 GEM_PATH
[2]