From: Sam Roberts Date: 2003-04-08T12:51:08+09:00 Subject: Re: Having trouble getting iconv-0.5 to find a dyn lib on OS X I think so, too, but I've no idea how. The only thing I can think of is this: $ DYLD_LIBRARY_PATH=/usr/local/lib ruby -r iconv -e 'Iconv.iconv("iso-8859-1","utf-8", "hello")' dyld: ruby Undefined symbols: _libiconv _libiconv_close _libiconv_open Trace/BPT trap dyld (the dynamic loader, apparently), suggested the name of the env variable. I'll keep hacking away at this. Thanks, Sam Quoteing nobu.nokada@softhome.net, on Tue, Apr 08, 2003 at 11:33:47AM +0900: > At Tue, 8 Apr 2003 10:34:53 +0900, > Sam Roberts wrote: > > $ ruby -r iconv -e 'Iconv.iconv("iso-8859-1","utf-8", "hello")' > > dyld: ruby Undefined symbols: > > _libiconv > > _libiconv_close > > _libiconv_open > > Trace/BPT trap > > > > It seems that ruby isn't finding my /usr/local/lib/libiconv.dylib at > > runtime, but I'm stumped as to how to convince it to look harder! > > I don't know about Mac OS X, but that libiconv seems > non-standard library, right? If so, I suspect you might need > to add /usr/local/lib to runtime library path. > > -- > Nobu Nakada >