From: Chris Gehlker Date: 2002-03-26T15:11:32+09:00 Subject: Re: Ruby for Mac OS 10.1 On 3/25/02 8:46 PM, "Jon Israelson" wrote: > I know that fink is an option for installing Ruby, but I would like to > be able to build it myself. Problem is that I get the following error > when compiling Ruby 1.6.6 on OS 10.1.3: > > cc -g -O2 -fno-common -pipe -no-precomp -I. -I. -I/usr/local/include -c > dln.c > dln.c:1091: header file 'dlfcn.h' not found > cpp-precomp: warning: errors during smart preprocessing, retrying in > basic mode > make: *** [dln.o] Error 1 > > I've worked with Ruby on Win32, Solaris and Linux, but am new to Mac OS > X. Any suggestions? Thanks. > I've heard from others who had this problem. I can't figure it out and I've never seen it myself. In my version of dln.c, it says: #ifdef USE_DLN_DLOPEN # ifdef __NetBSD__ # include # include # else # include # endif #endif So the question is, how did USE_DLN_DLOPEN get defined in your build? Anyway, jus comment it out. Others here have reported no problems doing that. -- There is, nevertheless, a certain respect and a general duty of humanity that ties us, not only to beasts that have life and sense, but even to trees and plants. -Michel de Montaigne, essayist (1533-1592)