Hi, I have recently installed Ruby on my Mac closely followed by FX. My FX install seems to have went without any problems however when I try to run my apps i get the the following suggesting that FX in not installed. evt.rb:1:in `require'': no such file to load -- fox16 (LoadError) from evt.rb:1 Does anyone have any ideas? Regards Stuart
Le 25 janv. 2009 ? 18:51, Stuart Clarke a ?crit :> Hi, > > I have recently installed Ruby on my Mac closely followed by FX. My > FX install seems to have went without any problems however when I > try to run my apps i get the the following suggesting that FX in > not installed. > > evt.rb:1:in `require'': no such file to load -- fox16 (LoadError) > from evt.rb:1 > > Does anyone have any ideas?Just put at the top of each rb file: require ''rubygems'' Cheers, Mich?le <http://micmacfr.homeunix.org> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20090125/1db40831/attachment.html>
On Jan 25, 2009, at 11:51 AM, Stuart Clarke wrote:> I have recently installed Ruby on my Mac closely followed by FX.When you say you''ve installed "FX", what exactly do you mean? Did you install the FOX library and then FXRuby? How did you install them (via MacPorts, or compiling by hand, what?) Michele''s suggestion (in a different reply) is a good thing to try if you installed FXRuby as a Ruby gem. If that doesn''t fix it, however, please provide some more information.
On Jan 26, 2009, at 2:45 PM, Stuart Clarke wrote:> Apologies for being so vague. > > I was having trouble with the Gem so I followed the instructions on > this site: > > http://lylejohnson.name/blog/2007/12/01/building-fox-and-fxruby-on-mac-os-x-leopard/ > also > > http://davidrupp.blogspot.com/2008/01/installing-fox-and-fxruby-on-mac-os-x.html > > After completing this, I was still having problems so I attempted > the gem installation again (sudo gem install fxruby). I still end > with the error that there is no FX to load.OK. And did you try doing: require ''rubygems'' before loading the gem, i.e. require ''rubygems'' require ''fox16'' # ... your code follows ... ?
On Jan 26, 2009, at 2:50 PM, Stuart Clarke wrote:> PS. I have also tried Michele''s suggestion, but nothing changes,OK. Let''s dig a little deeper then. Go to the command line and type: gem environment gemdir This should give some output like: /usr/local/lib/ruby/gems/1.8 Change directories to the "gems" subdirectory under this directory, e.g. cd `gem environment gemdir`/gems If you list the subdirectories in this directory, one of them should be "fxruby-1.6.18". Let''s check to see if the extension actually built successfully: ls /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.18/ext/fox16/*.bundle Does that last command (with the appropriate path for your machine, of course) show a "fox16.bundle" file?
Thats great, were up and running now. Many thanks, first class support as ever. --- On Tue, 27/1/09, Lyle Johnson <lyle at lylejohnson.name> wrote:> From: Lyle Johnson <lyle at lylejohnson.name> > Subject: Re: [fxruby-users] FX on Mac OS X > To: fxruby-users at rubyforge.org > Date: Tuesday, 27 January, 2009, 2:15 PM > On Jan 26, 2009, at 2:50 PM, Stuart Clarke wrote: > > > PS. I have also tried Michele''s suggestion, but > nothing changes, > > OK. Let''s dig a little deeper then. Go to the command > line and type: > > gem environment gemdir > > This should give some output like: > > /usr/local/lib/ruby/gems/1.8 > > Change directories to the "gems" subdirectory > under this directory, e.g. > > cd `gem environment gemdir`/gems > > If you list the subdirectories in this directory, one of > them should be "fxruby-1.6.18". Let''s check to > see if the extension actually built successfully: > > ls > /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.18/ext/fox16/*.bundle > > Does that last command (with the appropriate path for your > machine, of course) show a "fox16.bundle" file? > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users