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?
Thanks,
Phil.
Dne 13.2.2013 12:10, Philip Rhoades napsal(a):
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?
Thanks,
Phil.
What is this lib/miho.rb? Is it this [1] thing? Are you using recent enough version? Since this commit [2] might solve your issues I would say. And it has nothing to do with Fedora, it is Ruby 1.8 vs Ruby 1.9.3 difference.
Vít
[1] https://github.com/PeterHickman/Miho [2] https://github.com/PeterHickman/Miho/commit/00ea4c425620006c2e2a3fc5bb257a9e...
Vít,
On 2013-02-13 23:34, Vít Ondruch wrote:
Dne 13.2.2013 12:10, Philip Rhoades napsal(a):
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?
Thanks,
Phil.
What is this lib/miho.rb? Is it this [1] thing? Are you using recent enough version? Since this commit [2] might solve your issues I would say. And it has nothing to do with Fedora, it is Ruby 1.8 vs Ruby 1.9.3 difference.
Yes, that is what the app is and No, it did not fix the problem . . that is why I posted here . .
Regards,
Phil.
[1] https://github.com/PeterHickman/Miho [2] https://github.com/PeterHickman/Miho/commit/00ea4c425620006c2e2a3fc5bb257a9e... _______________________________________________ ruby-sig mailing list ruby-sig@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/ruby-sig
Dne 13.2.2013 13:56, Philip Rhoades napsal(a):
Vít,
On 2013-02-13 23:34, Vít Ondruch wrote:
Dne 13.2.2013 12:10, Philip Rhoades napsal(a):
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?
Thanks,
Phil.
What is this lib/miho.rb? Is it this [1] thing? Are you using recent enough version? Since this commit [2] might solve your issues I would say. And it has nothing to do with Fedora, it is Ruby 1.8 vs Ruby 1.9.3 difference.
Yes, that is what the app is and No, it did not fix the problem . . that is why I posted here . .
Regards,
Phil.
I did fresh clone and it works for me:
$ ./shell.rb [Miho] Hello, how are you? [You]
$ rpm -q ruby ruby-1.9.3.374-27.fc18.x86_64
And since your back trace contains "from ./shell.rb:4:in `<main>'" where the require is on 3rd line in the original source code, I doubt that you are running the same code as in upstream repository.
Vít
Vít,
On 2013-02-14 00:40, Vít Ondruch wrote:
Dne 13.2.2013 13:56, Philip Rhoades napsal(a):
Vít,
On 2013-02-13 23:34, Vít Ondruch wrote:
Dne 13.2.2013 12:10, Philip Rhoades napsal(a):
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?
Thanks,
Phil.
What is this lib/miho.rb? Is it this [1] thing? Are you using recent enough version? Since this commit [2] might solve your issues I would say. And it has nothing to do with Fedora, it is Ruby 1.8 vs Ruby 1.9.3 difference.
Yes, that is what the app is and No, it did not fix the problem . . that is why I posted here . .
Regards,
Phil.
I did fresh clone and it works for me:
$ ./shell.rb [Miho] Hello, how are you? [You]
$ rpm -q ruby ruby-1.9.3.374-27.fc18.x86_64
And since your back trace contains "from ./shell.rb:4:in `<main>'" where the require is on 3rd line in the original source code, I doubt that you are running the same code as in upstream repository.
I had added a comment line that's all - OK - cloning from scratch (I had already done that once for the new code) . . now it's working! - damn! and I have deleted the old dirs so now I can't compare and find out what was wrong . . oh well, thanks for the help.
Regards,
Phil.
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?
ruby-sig@lists.fedoraproject.org