Can't run samples - Mac OS 10.3 w/ RubyGems

Hello -
I’m interested in leveraging wxRuby on my PowerPC-based iBook.
I’ve got Mac OS 10.3.9 and I installed wxRuby 1.9.2 using gems.
However, when I try to run samples such as minimal.rb, I get the
following error:

dyld: ruby Undefined symbols:
_DataBrowserChangeAttributes
_PMGetDuplex
_PMSetDuplex
_TXNGetCommandEventSupport
_TXNSetCommandEventSupport
_TXNSetSpellCheckAsYouType
Trace/BPT trap

 It seems to be some fundamental issue with the install as I get the

same error no matter what sample I run. It’s my understanding that I
don’t need to install any other libraries, but if I’ve overlooked
something please let me know. Thanks!

Sebastian.

Hi Sebastian

Sebastian Comella wrote:

_TXNSetCommandEventSupport
_TXNSetSpellCheckAsYouType
Trace/BPT trap

I haven’t seen this error but I wonder whether it’s because recent PPC
versions of wxRuby have been built using 10.4. I think, for example,
that spell-check-as-you-type was a feature difference between 10.3 and
10.4, and wxWidgets conditionally compiles support for this in.

The last binary that was built using 10.3 was preview-0.0.40. Perhaps
you could try downloading it from:

http://rubyforge.org/frs/download.php/25570/wxruby2-preview-0.0.40-powerpc-darwin7.9.0.gem.old

Save the file, rename it to take the “.old” suffix off it, then run “gem
install wxruby2-preview” in that directory, and also uninstall the 1.9.2
gem.

If you can run the samples with that, then it is down to the OS version.

Unfortunately, in that case, you’ll have to compile your own version of
1.9.2, as, since my Powerbook got nicked, no-one in the dev team has a
10.3 machine. Fortunately, installing from source is pretty routien on
OS X - see the wiki:

http://wxruby.rubyforge.org/wiki/wiki.pl?Installation
http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets

hth
alex

Unfortunately, in that case, you’ll have to compile your own version of
1.9.2, as, since my Powerbook got nicked, no-one in the dev team has a
10.3 machine. Fortunately, installing from source is pretty routien on
OS X - see the wiki:

http://wxruby.rubyforge.org/wiki/wiki.pl?Installation
http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets

Thanks Alex -
I did try to build WxWidgets and during configuration it complained
about not finding a recent enough version of GTK. If you know a quick
fix for that issue (command line switch for configure?) that would be
great, but I think it’s simply time I shell out for a new OS version.
:slight_smile: Thanks for your help!

Sebastian.

Alex F. wrote:

Sebastian Comella wrote:

 I did try to build WxWidgets and during configuration it complained 

about not finding a recent enough version of GTK. If you know a quick
fix for that issue (command line switch for configure?) that would be
great,
It shouldn’t be looking for gtk on OS X, that’s for Linux. Is there
–with-gtk in your configure flags? Check you’re using the right
./configure switches from
http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets

cheers
alex

Hm, I re-downloaded the source today, and this time the configure (taken
both times from the helpful link you mentioned) worked! So I’m happily
compiling at the moment…Thanks for your help.

Sebastian.

Sebastian Comella wrote:

 I did try to build WxWidgets and during configuration it complained 

about not finding a recent enough version of GTK. If you know a quick
fix for that issue (command line switch for configure?) that would be
great,
It shouldn’t be looking for gtk on OS X, that’s for Linux. Is there
–with-gtk in your configure flags? Check you’re using the right
./configure switches from
http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets

cheers
alex