I''m probably doing something wrong, but I experience several issues trying to install FXRuby here [using gems] 1. How do I specify where to look for FOX? I tried --with-fox-include and --with-fox-lib but they give me an error: "gem install fxruby --force --with-fox-include=/usr/include/fox-1.4 --with-fox-lib=/usr/lib" which results in: "ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --with-fox-include=/usr/include/fox-1.4" 2. I''m getting this error while its building FXRuby In file included from include/FXRuby.h:747, from include/FXRbCommon.h:90, from core_wrap.cpp:588: include/FXRbIconSourceVirtuals.h:15: error: invalid covariant return type for `virtual FX::FXImage* FXRbIconSource::loadImage(const void*, const FX::FXString&) const'' /usr/local/include/fox-1.4/FXIconSource.h:109: error: overriding `virtual FX::FXIcon* FX::FXIconSource::loadImage(const void*, const FX::FXString&) const'' make: *** [core_wrap.o] Error 1
Ok, forget problem #2. A fresh install of FOX fixed that problem. Sander On Monday 22 August 2005 04:17 pm, Sander Jansen wrote:> I''m probably doing something wrong, but I experience several issues trying > to install FXRuby here [using gems] > > 1. How do I specify where to look for FOX? > > I tried --with-fox-include and --with-fox-lib but they give me an error: > > "gem install fxruby --force --with-fox-include=/usr/include/fox-1.4 > --with-fox-lib=/usr/lib" > > which results in: > > "ERROR: While executing gem ... (OptionParser::InvalidOption) > invalid option: --with-fox-include=/usr/include/fox-1.4" > > 2. I''m getting this error while its building FXRuby > > In file included from include/FXRuby.h:747, > from include/FXRbCommon.h:90, > from core_wrap.cpp:588: > include/FXRbIconSourceVirtuals.h:15: error: invalid covariant return type > for `virtual FX::FXImage* FXRbIconSource::loadImage(const void*, const > FX::FXString&) const'' > /usr/local/include/fox-1.4/FXIconSource.h:109: error: overriding `virtual > FX::FXIcon* FX::FXIconSource::loadImage(const void*, const FX::FXString&) > const'' > make: *** [core_wrap.o] Error 1 > > > _______________________________________________ > fxruby-users mailing list > fxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users
Joel VanderWerf
2005-Aug-22 19:13 UTC
[fxruby-users] Some problems with FXRuby 1.4.2, 1.4.1
Sander Jansen wrote:> I''m probably doing something wrong, but I experience several issues trying to > install FXRuby here [using gems] > > 1. How do I specify where to look for FOX? > > I tried --with-fox-include and --with-fox-lib but they give me an error: > > "gem install fxruby --force --with-fox-include=/usr/include/fox-1.4 > --with-fox-lib=/usr/lib" > > which results in: > > "ERROR: While executing gem ... (OptionParser::InvalidOption) > invalid option: --with-fox-include=/usr/include/fox-1.4"How about if you build from a tar ball? This just sounds like gem doesn''t know how to pass on options (I don''t see any indication in `gem help install` otherwise). -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
On Aug 22, 2005, at 4:17 PM, Sander Jansen wrote:> I''m probably doing something wrong, but I experience several issues > trying to > install FXRuby here [using gems] > > 1. How do I specify where to look for FOX? > > I tried --with-fox-include and --with-fox-lib but they give me an > error: > > "gem install fxruby --force --with-fox-include=/usr/include/fox-1.4 > --with-fox-lib=/usr/lib" > > which results in: > > "ERROR: While executing gem ... (OptionParser::InvalidOption) > invalid option: --with-fox-include=/usr/include/fox-1.4"Well, the possibly good news is that I *think* that /usr/include/fox-1.4 and /usr/lib are one of the standard directory pairs that the build script will check for a FOX installation, so you can *probably* get by with just doing: gem install fxruby Despite this, your experiment shows that, apparently, they''ve changed how you pass command-line options through gem install, so I need to follow up on this with the RubyGems developers. If you''re unable to build the code by doing "gem install fxruby", fall back to the tarball build for now, per Joel''s suggestion.
On Aug 22, 2005, at 6:39 PM, Sander Jansen wrote:> Anyway, I seem to have more problems. Both require ''rubygems'' and > require > ''fox14'' return false. Any clue what might be wrong. There no other > errors > showing up on the cmdline.Back up a little bit, I''m confused. Are you doing this from irb? How do you know that the require calls are returning false? Have you tried to just run one of the examples (e.g. "hello.rb") to see what happens?
On Aug 22, 2005, at 8:43 PM, Sander Jansen wrote:> hmmm yes: > > [sxj@einstein ~]$ irb > irb(main):001:0> require ''rubygems'' > => false > irb(main):002:0> require ''fox14'' > => false > irb(main):003:0> include Fox > NameError: uninitialized constant Fox > from (irb):3 > irb(main):004:0>OK.>> Have you tried to >> just run one of the examples (e.g. "hello.rb") to see what happens? > > Yes, same error as above. I think in someway the Ruby installation is > broken...Taking the problems one at a time, I''m curious about why the require of "rubygems" is failing. Have you actually installed RubyGems yet? It''s not part of the standard Ruby distro yet, so that would be something that you''d need to download separately and install first.