Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run cucumber-nagios on CentOS 6.7 #95

Open
GitHubUserToo opened this issue Jan 2, 2016 · 0 comments
Open

Unable to run cucumber-nagios on CentOS 6.7 #95

GitHubUserToo opened this issue Jan 2, 2016 · 0 comments

Comments

@GitHubUserToo
Copy link

Which version of bundler should I be using for cucumber-nagios? I get the errors below no matter which I try.

[root@backup ~]# gem list bundler
*** LOCAL GEMS ***
bundler (1.0.22)

[root@backup ebay.com.au]# cucumber-nagios features/ebay.com.au/bidding.feature
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:183:in stub_source_index170': uninitialized constant Gem::SourceIndex (NameError) from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:303:instub_rubygems'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:246:in replace_entrypoints' from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler/runtime.rb:14:insetup'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/bundler-1.0.22/lib/bundler.rb:110:in setup' from /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/rubygems-bundler-1.4.4/lib/rubygems-bundler/noexec.rb:94:insetup'
from /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/rubygems-bundler-1.4.4/lib/rubygems-bundler/noexec.rb:124:in check' from /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/rubygems-bundler-1.4.4/lib/rubygems-bundler/noexec.rb:131:in<top (required)>'
from /usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in require' from /usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:inrescue in require'
from /usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:39:in require' from /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/rubygems-bundler-1.4.4/lib/rubygems_executable_plugin.rb:4:inblock in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/executable-hooks-1.3.2/lib/executable-hooks/hooks.rb:50:in call' from /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/executable-hooks-1.3.2/lib/executable-hooks/hooks.rb:50:inblock in run'
from /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/executable-hooks-1.3.2/lib/executable-hooks/hooks.rb:49:in each' from /usr/local/rvm/gems/ruby-1.9.3-p551@global/gems/executable-hooks-1.3.2/lib/executable-hooks/hooks.rb:49:inrun'
from /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:10:in `

'

gem update bundler

[root@backup ~]# gem list bundler
*** LOCAL GEMS ***
bundler (1.11.2, 1.0.22)

[root@backup ebay.com.au]# cucumber-nagios features/ebay.com.au/bidding.feature
/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:2283:in `raise_if_conflicts': Unable to activate cucumber-nagios-0.9.2, because bundler-1.11.2 conflicts with bundler (~> 1.0.7) (Gem::ConflictError)

gem uninstall bundler -v 1.0.22

[root@backup ebay.com.au]# gem list bundler
*** LOCAL GEMS ***
bundler (1.11.2)
bundler-unload (1.0.2)

[root@backup ebay.com.au]# cucumber-nagios features/ebay.com.au/bidding.feature
/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:2283:in `raise_if_conflicts': Unable to activate cucumber-nagios-0.9.2, because bundler-1.11.2 conflicts with bundler (~> 1.0.7) (Gem::ConflictError)

Versions....

[root@backup ebay.com.au]# gem list bundler
*** LOCAL GEMS ***
bundler (1.11.2)
bundler-unload (1.0.2)
bundler08 (0.8.5)
rubygems-bundler (1.4.4)
[root@backup ebay.com.au]# bundler -v
Bundler version 1.11.2
[root@backup ebay.com.au]# ruby -v
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]
[root@backup ebay.com.au]# bundler -v
Bundler version 1.11.2
[root@backup ebay.com.au]# rvm -v
rvm 1.26.11 (latest) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/]
[root@backup ebay.com.au]# gem -v
2.5.1

Thank you.

(my first time using cucumber-nagios or gem or ruby)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant