Bug 1089217 - bundle exec byebug issue
Summary: bundle exec byebug issue
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygem-bundler
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vít Ondruch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-18 09:38 UTC by Aleksandar Kostadinov
Modified: 2014-04-18 11:11 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-18 10:46:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
example project to test with (406 bytes, application/x-compressed-tar)
2014-04-18 09:38 UTC, Aleksandar Kostadinov
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.