Bug 1089217

Summary: bundle exec byebug issue
Product: [Fedora] Fedora Reporter: Aleksandar Kostadinov <akostadi>
Component: rubygem-bundlerAssignee: Vít Ondruch <vondruch>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: besser82, bkabrda, jstribny, s, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-18 10:46:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
example project to test with none

Description Aleksandar Kostadinov 2014-04-18 09:38:19 UTC
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?

Comment 1 Aleksandar Kostadinov 2014-04-18 09:52:33 UTC
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"

Comment 2 Vít Ondruch 2014-04-18 10:46:46 UTC
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.

Comment 3 Aleksandar Kostadinov 2014-04-18 10:58:49 UTC
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.

Comment 4 Vít Ondruch 2014-04-18 11:11:43 UTC
Thanks for the feedback. Glad it helped.