Created attachment 887489 [details] example project to test with I'm attaching a very simple ruby project using byebug (and nothing else actually). The problem is that if I run `ruby test.rb` it works fine. But if I run `bundle exec ruby test.rb`, then it throws an error: > $ bundle exec ruby test.rb > /usr/local/share/gems/gems/byebug-2.7.0/lib/byebug.rb:1:in `require': cannot load such file -- byebug/byebug (LoadError) > from /usr/local/share/gems/gems/byebug-2.7.0/lib/byebug.rb:1:in `<top (required)>' > from test.rb:1:in `require' > from test.rb:1:in `<main>' > $ bundle version > Bundler version 1.5.3 > $ rpm -q rubygem-bundler > rubygem-bundler-1.3.5-2.fc20.noarch Any idea what's wrong?
I need to add that I don't see this problem if I install ruby2 with rvm and run bundle exec like: > rvm ruby-2.0 do bundle exec ruby test.rb > > [1, 4] in test.rb > 1: require 'byebug' > 2: > 3: byebug > => 4: puts "blah"
This is wrong: > > $ bundle version > > Bundler version 1.5.3 > > $ rpm -q rubygem-bundler > > rubygem-bundler-1.3.5-2.fc20.noarch See the versions and please use Fedora's rubygem-bundler.
Thank you, ruby gem seems to smart for me at times... I had properly installed bundler as root but for some reason I had also installed one in my ~/.gem dir. Removing .gem solved my issue.
Thanks for the feedback. Glad it helped.