From: Hans Fugal Date: 2006-07-24T22:00:11+09:00 Subject: Re: problem building ruby-audio-0.1.1 on OSX 10.4.7 Mike Spears wrote: > Hi, > > I'm trying to install ruby-audio on OS X. The instructions for > installing say to run 'rake' but when I do, I get the following error: > /usr/bin/ld: Undefined symbols: > _cNArray > _na_sizeof > > narray is a prerequisite for this extension and I have narray working > on my machine (ie I can use it in my ruby scripts and 'narray.bundle' > is located in /usr/lib/ruby/site-ruby/1.8/powerpc-darwin8.0). > > The c source file for the ruby-audio extension #includes narray.h. I > think this is where the problem is: the linker can't find the external > symbols defined in this header. > > Is there something I have to change in the ruby-audio extconf.rb file > (or anywhere else) in order to get this to work? > > (I would also like to use narray.h for my own extension in order to > access some of the macros there - so any help is greatly appreciated!) You're right, the linker isn't finding the narray lib. It would help if you paste the entire output of rake. My first guess is that you have two ruby installations and rake is somehow using the wrong one. In any case, you should be able to work around it by hand-tweaking ext/sndfile/Makefile, but I'd like to know if something is broken so I can fix it.