[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

FXRuby Install

Mark Chandler

10/1/2006 10:45:00 PM

I am running Ubuntu Dapper Drake.

I'm trying to install FXRuby using Ruby Gems. I've installed the Fox
Toolkit v1.4 and 1.2c using the package manager. Now the instructions
(http://www.ubuntuforums.org/showthread.p...) say that I should
open up irb and test out the results.

The results I should get:
"irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require_gem 'fxruby'
=> true
irb(main):003:0> include Fox
=> Object"

The results I get:
"irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require_gem 'fxruby'
=> true
irb(main):003:0> include Fox
NameError: uninitialized constant Fox
from (irb):3
"

Thanks in advance!

--
Posted via http://www.ruby-....

4 Answers

Lyle Johnson

10/1/2006 11:16:00 PM

0

On 10/1/06, Mark Chandler <mark@chandlerm.com> wrote:

> I am running Ubuntu Dapper Drake.
>
> I'm trying to install FXRuby using Ruby Gems. I've installed the Fox
> Toolkit v1.4 and 1.2c using the package manager. Now the instructions
> (http://www.ubuntuforums.org/showthread.p...) say that I should
> open up irb and test out the results.
>
> The results I should get:
> "irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require_gem 'fxruby'
> => true
> irb(main):003:0> include Fox
> => Object"
>
> The results I get:
> "irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require_gem 'fxruby'
> => true
> irb(main):003:0> include Fox
> NameError: uninitialized constant Fox
> from (irb):3

What do you get if you do:

require 'rubygems'

followed by:

require 'fox14'

-- Lyle

Mark Chandler

10/1/2006 11:26:00 PM

0

Lyle Johnson wrote:
> On 10/1/06, Mark Chandler <mark@chandlerm.com> wrote:
>
>> irb(main):002:0> require_gem 'fxruby'
>> NameError: uninitialized constant Fox
>> from (irb):3
>
> What do you get if you do:
>
> require 'rubygems'
>
> followed by:
>
> require 'fox14'
>
> -- Lyle

LoadError: no such file to load -- fox14
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from (irb):2

--
Posted via http://www.ruby-....

marinho.tobolla@syncity.de

10/2/2006 6:53:00 AM

0

Well i have also problems using gentoo,suse or slackware gems fox/fxruby
(i even had the same error messages so it´s the same problem i
guess...). Well my problem was sort of solved, after installing
fox/fxruby from the source and not from the gem.

right now i use fox and fxruby 1.6.1 and it all works nicely.


Mark Chandler schrieb:

>Lyle Johnson wrote:
>
>
>>On 10/1/06, Mark Chandler <mark@chandlerm.com> wrote:
>>
>>
>>
>>>irb(main):002:0> require_gem 'fxruby'
>>>NameError: uninitialized constant Fox
>>> from (irb):3
>>>
>>>
>>What do you get if you do:
>>
>> require 'rubygems'
>>
>>followed by:
>>
>> require 'fox14'
>>
>>-- Lyle
>>
>>
>
>LoadError: no such file to load -- fox14
> from
>/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
>`gem_original_require'
> from
>/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from (irb):2
>
>
>


M. Edward (Ed) Borasky

10/2/2006 1:38:00 PM

0

Marinho Tobolla wrote:
> Well i have also problems using gentoo,suse or slackware gems fox/fxruby
> (i even had the same error messages so it´s the same problem i
> guess...). Well my problem was sort of solved, after installing
> fox/fxruby from the source and not from the gem.
>
> right now i use fox and fxruby 1.6.1 and it all works nicely.
>
>
> Mark Chandler schrieb:
>
>> Lyle Johnson wrote:
>>
>>
>>> On 10/1/06, Mark Chandler <mark@chandlerm.com> wrote:
>>>
>>>
>>>> irb(main):002:0> require_gem 'fxruby'
>>>> NameError: uninitialized constant Fox
>>>> from (irb):3
>>>>
>>> What do you get if you do:
>>>
>>> require 'rubygems'
>>>
>>> followed by:
>>>
>>> require 'fox14'
>>>
>>> -- Lyle
>>>
>>
>> LoadError: no such file to load -- fox14
>> from
>> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> `gem_original_require'
>> from
>> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
>> from (irb):2
>>
>>
>>
>
>
>

Yeah, the whole Gentoo FreeRide/fxscintilla/fxruby/fox chain only works
at the 1.2 level of Fox. More recent Fox versions need some work. Part
of the problem was that quite a bit of gentle nudging was required to
get them all to compile with gcc 4.1.1. I haven't been able to get it
all to work at the 1.6 level; the latest "stable" fxscintilla only works
up to Fox 1.4 and the CVS fxscintilla didn't compile.

There are Gentoo bugzilla entries for most of this, but I don't know
about any of the other distros. I'll take another stab at getting it all
to work this coming weekend.