[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

fxruby on cygwin...so close

bwv549

5/17/2007 2:49:00 PM

So, after some trial and error I got the fox toolkit to compile under
cygwin using these configuration options:

./configure --without-xcursor --disable-shared --without-xrandr
make && make install

I install fxruby with the usual 'gem install fxruby (choosing 'ruby
1.6.11'. It gives one warning (which I don't think is significant):
cc1: warning: command line option "-fpermissive" is valid for C++/
ObjC++ but not for C

It compiles happily, says it is install on the system:
make install
make: Nothing to be done for `install'.

make clean
Successfully installed fxruby-1.6.11
Installing ri documentation for fxruby-1.6.11...
Installing RDoc documentation for fxruby-1.6.11...

Then, when I go to use it in irb, I get this:
irb(main):001:0> require 'fox16'
LoadError: no such file to load -- fox16
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `requi
re' from (irb):1

So, it appears that everything installs correctly, but the actual
fox16 file to require is missing somehow. I am setup to use rubygems
(echo $RUBYOPT # -> rubygems).

Any ideas?

1 Answer

Lyle Johnson

5/17/2007 3:26:00 PM

0

On 5/17/07, bwv549 <jtprince@gmail.com> wrote:

> It compiles happily, says it is install on the system:
> make install
> make: Nothing to be done for `install'.
>
> make clean

<snip>

There's your trouble. There was a bug in RubyGems (which has since
been fixed) that caused it to immediately clobber compiled extensions
("make clean") after it finished building them.

Update to the latest RubyGems and you should be good to go.