From: Chris Gehlker Date: 2002-04-15T23:16:27+09:00 Subject: Re: Compiling Ruby on Mac OS X On 4/15/02 6:41 AM, "Alwyn" wrote: > In <20020415091534.A89552@freeze.org> Jim Freeze wrote: >> On Mon, Apr 15, 2002 at 09:41:49PM +0900, Alwyn wrote: >>> I've downloaded the latest Stable Snapshot and tried building it. It >>> fails as follows: >>> >>> cc -g -O2 -pipe -no-precomp -I. -I. -c dln.c >>> dln.c:1093: header file 'dlfcn.h' not found >>> cpp-precomp: warning: errors during smart preprocessing, retrying in >>> basic mode >>> make: *** [dln.o] Error 1 >>> >>> Has anyone any idea of a patch that I might apply to get it to compile >>> successfully? >> >> I got this error, but only after installing the bash shell. >> Before I installed the bash shell, I downloaded and compiled ruby >> with no problem. Then I installed bash, but inside bash >> I could not run irb - but I could still run ruby. >> I figured that it must be a path problem but have not taken >> the time to investigate. So, I uninstalled the bash shell >> and reverted back to tcsh. However, now I get the same problem >> you have reported above. I cannot build ruby. >> >> I am very interested in what anyone has to say about this. > > I've never installed 'bash', and I always run tsch, so that can't be it. > > For completeness, I will give: > > % uname -a > Darwin pc-62-30-160-65-hw.blueyonder.co.uk 5.3 Darwin Kernel Version 5.3: > Thu Jan 24 22:06:02 PST 2002; root:xnu/xnu-201.19.obj~1/RELEASE_PPC > Power Macintosh powerpc > % ./config.guess > powerpc-apple-darwin5.3 This may not be the problem, but don't let Stuffit Expander unarchive your .tgz file. It will truncate file names. Acceptable ways to unarchive the file include tar, GNUtar, OpenIt, Magic Menu (set to use Unix utilities). Then pass these switches to configure: --enable-shared And --mandir=/usr/local/share/man Let us know if that doesn't solve the problem. -- Some people say Windows users have an inferiority complex. That's not true. It's not a complex.