Rubgem RPM problem?

Darryl L. Pierce mcpierce at gmail.com
Wed Feb 13 19:48:18 UTC 2013


On Wed, Feb 13, 2013 at 10:10:20PM +1100, Philip Rhoades wrote:
> People,
> 
> I try to run a Ruby script that requires a custom library to be
> loaded - when I do it with 1.8.7 on Fedora 16 with the conventional
> gems, it works fine - however on Fedora 18 with Gems as RPMs and
> Ruby 1.9.3 I get this error:
> 
> /usr/share/rubygems/rubygems/custom_require.rb:36:in `require':
> cannot load such file -- lib/miho.rb (LoadError)
> 	from /usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
> 	from ./shell.rb:4:in `<main>'
> 
> The author has no problem with Ruby 1.9.3 on OS/X so I figure it is
> a problem with the conversion of the gems to rpms?
> 
> I can work around the problem by putting the full path to the lib in
> the "require" line but it looks like something needs attention here?

Well, there's no real "conversion" per se. All the RPMs are is a
snapshot of the gem as it would be installed. Is the code in question
requiring rubygems and then loading the gem that provides miho.rb?

-- 
Darryl L. Pierce <mcpierce at gmail.com>
http://mcpierce.multiply.com/
"What do you care what people think, Mr. Feynman?"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/ruby-sig/attachments/20130213/81e3af38/attachment.sig>


More information about the ruby-sig mailing list