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

**URL:** <https://www.ruby-forum.com/t/cant-run-samples-mac-os-10-3-w-rubygems/119163>\
**Category:** wxRuby\
**Created:** [November 4, 2007, 4:17am UTC](https://www.ruby-forum.com/t/cant-run-samples-mac-os-10-3-w-rubygems/119163 "2007-11-04T04:17:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chidori](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@chidori](https://www.ruby-forum.com/u/chidori)\
**Post date:** [November 4, 2007, 4:17am UTC](https://www.ruby-forum.com/t/cant-run-samples-mac-os-10-3-w-rubygems/119163/1 "2007-11-04T04:17:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![chidori](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@chidori](https://www.ruby-forum.com/u/chidori)\
**Post date:** [November 4, 2007, 4:39am UTC](https://www.ruby-forum.com/t/cant-run-samples-mac-os-10-3-w-rubygems/119163/2 "2007-11-04T04:39:07Z")

</div>

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](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?Installation)  
[http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets](http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets)

hth  
alex

---

<div class="post-metadata">

**Author:** ![chidori](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@chidori](https://www.ruby-forum.com/u/chidori)\
**Post date:** [November 6, 2007, 2:40am UTC](https://www.ruby-forum.com/t/cant-run-samples-mac-os-10-3-w-rubygems/119163/3 "2007-11-06T02:40:37Z")

</div>

> 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?Installation)  
> [http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets](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.  
🙂 Thanks for your help!

Sebastian.

---

<div class="post-metadata">

**Author:** ![chidori](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@chidori](https://www.ruby-forum.com/u/chidori)\
**Post date:** [November 10, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/cant-run-samples-mac-os-10-3-w-rubygems/119163/4 "2007-11-10T22:39:50Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![chidori](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@chidori](https://www.ruby-forum.com/u/chidori)\
**Post date:** [November 6, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/cant-run-samples-mac-os-10-3-w-rubygems/119163/5 "2007-11-06T13:03:05Z")

</div>

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](http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets)

cheers  
alex
