From: Nobuyoshi Nakada Date: 2003-04-13T19:44:34+09:00 Subject: Re: Having trouble getting iconv-0.5 ... on OS X (actually extconf.rb bug) Hi, At Sun, 13 Apr 2003 15:31:34 +0900, Sam Roberts wrote: > > > Note that it found /usr/local/include/iconv.h, but failed to find iconv(), and > > > yet still created the Makefile. Why? > > > > Some platforms don't need any additional libraries to use > > iconv(), because they have it in libc. > > Sure, but isn't that what extconf.rb is checking, whether you need > -liconv? Yes, on such systems, -liconv isn't needed. > Anynow, I went back to having my iconv installed in /sw (kind of the > /opt of the OS X world). It allows iconv.h to be found, but the > extconf.rb still isn't figuring out that it needs -liconv, but it works > when I specify -liconv in the USER_LIBS. Can't you show me the mkmf.log? > [ensemble] ~/p/ruby/download/iconv-0.5 $ ruby extconf.rb --with-iconv-dir=/sw Sorry, I forgot `with'. -- Nobu Nakada