[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

FXRuby help

Jamis Buck

9/29/2004 10:01:00 PM

Having some troubles getting FXRuby to work for me. Any script that I
run that uses fxruby (including the examples in the FXRuby distribution)
will hang on the "require 'fox'" line.

Has anyone seen this before? I'm at a loss. :(

Relevant system information:

> uname -a
Linux serling 2.6.8-gentoo-r3 #1 Tue Sep 21 21:47:54 MDT 2004 i686
Intel(R) Pentium(R) M processor 1600MHz GenuineIntel GNU/Linux

> ruby -v
ruby 1.8.2 (2004-07-29) [i686-linux]

> gcc --version
gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)

I've tried both FOX 1.2.4 and 1.2.6. I'm using FXRuby 1.2.1.

On a somewhat-related note: I can't seem to install FXRuby via the gem,
either -- it croaks with an error:

make install
make: Nothing to be done for `install'.
ERROR: While executing gem ... (TypeError)
cannot convert String into Array

Help!

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...


13 Answers

craig duncan

9/29/2004 10:26:00 PM

0

Jamis Buck wrote:

> Having some troubles getting FXRuby to work for me. Any script that I
> run that uses fxruby (including the examples in the FXRuby
> distribution) will hang on the "require 'fox'" line.

I thought all the examples used:

require 'rubygems'
require_gem 'fxruby'

> Has anyone seen this before? I'm at a loss. :(
>
> I've tried both FOX 1.2.4 and 1.2.6. I'm using FXRuby 1.2.1.
>
> On a somewhat-related note: I can't seem to install FXRuby via the
> gem, either -- it croaks with an error:
>
> make install
> make: Nothing to be done for `install'.
> ERROR: While executing gem ... (TypeError)
> cannot convert String into Array

This is the error i got when i tried installing via gem. So i built and
installed from the tarball (FOX 1.2) and that worked fine for me. Except
the require 'rubygems' method (which i just replace with require
'fox' to get it to work) gives me the following error.

> Could not find RubyGem fxruby (> 0.0.0)
> from /usr/local/lib/site_ruby/1.8/rubygems.rb:34:in `require_gem'
> from dilbert.rb:4



Jamis Buck

9/29/2004 10:39:00 PM

0

craig duncan wrote:
> Jamis Buck wrote:
>
>> Having some troubles getting FXRuby to work for me. Any script that I
>> run that uses fxruby (including the examples in the FXRuby
>> distribution) will hang on the "require 'fox'" line.
>
>
> I thought all the examples used:
> require 'rubygems'
> require_gem 'fxruby'

They do. I changed it to just 'require "fox"' (since the gem install
would not work for me).

(Incidentally, the examples would do well to just say 'require "fox"',
instead of the explicit rubygems dependency...)

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...


Richard Lyman

9/29/2004 11:18:00 PM

0

I'm about to install FXRuby on Suse for the first time, but I seem to
remember that you don't need to install Fox. I remember Lyle saying
that FXRuby came with Fox. Maybe that was just for Windows though.

If you can wait until the weekend, I should have had a chance to get
my FXRuby working by then...

-Rich


On Thu, 30 Sep 2004 07:38:51 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:
> craig duncan wrote:
> > Jamis Buck wrote:
> >
> >> Having some troubles getting FXRuby to work for me. Any script that I
> >> run that uses fxruby (including the examples in the FXRuby
> >> distribution) will hang on the "require 'fox'" line.
> >
> >
> > I thought all the examples used:
> > require 'rubygems'
> > require_gem 'fxruby'
>
> They do. I changed it to just 'require "fox"' (since the gem install
> would not work for me).
>
> (Incidentally, the examples would do well to just say 'require "fox"',
> instead of the explicit rubygems dependency...)
>
>
>
> - Jamis
>
> --
> Jamis Buck
> jgb3@email.byu.edu
> http://www.jamisbuck...
>
>


Richard Lyman

9/30/2004 2:59:00 AM

0

I've found where I was mislead. It _is_ the windows binary. It comes
with Fox, Scintilla, and OpenGL pre-built.

-Rich


On Wed, 29 Sep 2004 17:18:22 -0600, Richard Lyman <lymans@gmail.com> wrote:
> I'm about to install FXRuby on Suse for the first time, but I seem to
> remember that you don't need to install Fox. I remember Lyle saying
> that FXRuby came with Fox. Maybe that was just for Windows though.
>
> If you can wait until the weekend, I should have had a chance to get
> my FXRuby working by then...
>
> -Rich
>
>
>
>
> On Thu, 30 Sep 2004 07:38:51 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:
> > craig duncan wrote:
> > > Jamis Buck wrote:
> > >
> > >> Having some troubles getting FXRuby to work for me. Any script that I
> > >> run that uses fxruby (including the examples in the FXRuby
> > >> distribution) will hang on the "require 'fox'" line.
> > >
> > >
> > > I thought all the examples used:
> > > require 'rubygems'
> > > require_gem 'fxruby'
> >
> > They do. I changed it to just 'require "fox"' (since the gem install
> > would not work for me).
> >
> > (Incidentally, the examples would do well to just say 'require "fox"',
> > instead of the explicit rubygems dependency...)
> >
> >
> >
> > - Jamis
> >
> > --
> > Jamis Buck
> > jgb3@email.byu.edu
> > http://www.jamisbuck...
> >
> >
>


Lyle Johnson

9/30/2004 1:24:00 PM

0

On Thu, 30 Sep 2004 07:00:45 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:

> Having some troubles getting FXRuby to work for me. Any script that I
> run that uses fxruby (including the examples in the FXRuby distribution)
> will hang on the "require 'fox'" line.
>
> Has anyone seen this before? I'm at a loss. :(

Me too. I don't have access to a Gentoo system, but things work fine
under my olden Red Hat 9 install. And I suspect I would have heard
from some other Linux users if this were a widespread problem.

Can you even load FXRuby from irb, e.g. start irb and then do "require 'fox'"?

> On a somewhat-related note: I can't seem to install FXRuby via the gem,
> either -- it croaks with an error:

There may have been some changes with the latest RubyGems release that
break backwards-compatibility? Again, haven't seen this problem with
RubyGems 0.7 and earlier.


Lyle Johnson

9/30/2004 1:25:00 PM

0

On Thu, 30 Sep 2004 07:38:51 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:

> (Incidentally, the examples would do well to just say 'require "fox"',
> instead of the explicit rubygems dependency...)

Yes, that's being fixed for the next release. I didn't understand what
RubyGems' stub libraries were at the time I wrote the examples that
way,


Lyle Johnson

9/30/2004 1:27:00 PM

0

On Thu, 30 Sep 2004 08:18:29 +0900, Richard Lyman <lymans@gmail.com> wrote:

> I'm about to install FXRuby on Suse for the first time, but I seem to
> remember that you don't need to install Fox. I remember Lyle saying
> that FXRuby came with Fox. Maybe that was just for Windows though.

The precompiled binary distribution of FXRuby for Windows has the FOX
library statically linked into it, so that you don't need to install
FOX separately. This is not the case for Linux; you need to download
and install FOX first.


Jamis Buck

9/30/2004 3:56:00 PM

0

Lyle Johnson wrote:
> On Thu, 30 Sep 2004 07:00:45 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:
>
>
>>Having some troubles getting FXRuby to work for me. Any script that I
>>run that uses fxruby (including the examples in the FXRuby distribution)
>>will hang on the "require 'fox'" line.
>>
>>Has anyone seen this before? I'm at a loss. :(
>
>
> Me too. I don't have access to a Gentoo system, but things work fine
> under my olden Red Hat 9 install. And I suspect I would have heard
> from some other Linux users if this were a widespread problem.

It has worked for me in the past, under a different gentoo
installation...I can only imagine I've got something weird going on,
dependency-wise. :(

>
> Can you even load FXRuby from irb, e.g. start irb and then do "require 'fox'"?

Nope. I do 'require "fox"' and it immediately hangs.

Unfortunately, with RubyConf looming, I don't have any more time to
spend on this, and not being a "gui-guy", I probably won't spend much
time on it after the conference either. If anyone is able to duplicate
the problem and find a solution, I'd be very interested in hearing about
it, though.

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...


Lyle Johnson

9/30/2004 4:09:00 PM

0

On Fri, 1 Oct 2004 00:55:45 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:

> If anyone is able to duplicate
> the problem and find a solution, I'd be very interested in hearing about
> it, though.

Me too ;)


Chad Fowler

9/30/2004 4:13:00 PM

0

On Fri, 1 Oct 2004 00:55:45 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:
> Lyle Johnson wrote:
> > On Thu, 30 Sep 2004 07:00:45 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:
> >
> >
> >>Having some troubles getting FXRuby to work for me. Any script that I
> >>run that uses fxruby (including the examples in the FXRuby distribution)
> >>will hang on the "require 'fox'" line.
> >>
> >>Has anyone seen this before? I'm at a loss. :(
> >
> >
> > Me too. I don't have access to a Gentoo system, but things work fine
> > under my olden Red Hat 9 install. And I suspect I would have heard
> > from some other Linux users if this were a widespread problem.
>
> It has worked for me in the past, under a different gentoo
> installation...I can only imagine I've got something weird going on,
> dependency-wise. :(
>
> >
> > Can you even load FXRuby from irb, e.g. start irb and then do "require 'fox'"?
>
> Nope. I do 'require "fox"' and it immediately hangs.
>
> Unfortunately, with RubyConf looming, I don't have any more time to
> spend on this, and not being a "gui-guy", I probably won't spend much
> time on it after the conference either. If anyone is able to duplicate
> the problem and find a solution, I'd be very interested in hearing about
> it, though.
>
>

Remind me at the conference and we'll take a look at it.

Seeya there!
Chad