hi lyle, a unique way of initializing fxruby would be great. afaik currently there are 2 methods of require-ing fxruby depending on how it has been installed. this is quite inconvenient for application developers who want their app to run with any fxruby installation type (gem / installer / built from source) would it be possible to install a "fox14.rb" with fxruby1.4.4 gem that does the require "rubygems"; require_gem "fxruby"; or something like that. (i don''t know nothing about how rubygems works) provided that it should be possible to require fxruby144 by calling require "fox14" also if it was installed as a gem. best wishes, -- henon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060215/afa184aa/attachment.htm
On Wed, 15 Feb 2006 18:39:13 +0100, Meinrad Recheis <meinrad.recheis at gmail.com> wrote :> a unique way of initializing fxruby would be great...I am confused about what the difficulty is, exactly. I''m sitting at my machine at work where I''m running Ruby 1.8.2 for Windows from the one-click installer. I have FXRuby 1.4.4 installed as a gem here: C:\>gem list fxruby *** LOCAL GEMS *** fxruby (1.4.4, 1.4.3, 1.2.6) FXRuby is the Ruby binding to the FOX GUI toolkit. and if I just do "require ''fox14''", it works fine: C:\>ruby -e "require ''fox14''; p Fox.fxrubyversion" "1.4.4" So what''s the problem?
On Wed, 15 Feb 2006 19:52:12 +0100, Meinrad Recheis <meinrad.recheis at gmail.com> wrote :> i don''t know. this is what i get on linux: > > henon at golem:~$ ruby -v > ruby 1.8.3 (2005-06-23) [i486-linux] > henon at golem:~$ gem list fxruby > > *** LOCAL GEMS *** > > fxruby (1.4.4, 1.4.3) > FXRuby is the Ruby binding to the FOX GUI toolkit. > henon at golem:~$ irb > irb(main):001:0> require ''fox14'' > LoadError: no such file to load -- fox14 > from (irb):1:in `require'' > from (irb):1 > irb(main):002:0> > > seems to work for me on windows too.I think that you probably don''t have the RUBYOPT environment variable set to automatically require the "rubygems" library. This is a RubyGems installation issue that''s discussed here: http://docs.rubygems.org/read/chapter/3 See the section titled "Using RUBYOPT". Hope this helps, Lyle