From: Dave Howell Date: 2010-06-18T04:29:00+09:00 Subject: Re: Dear gem: still no zlib. On Jun 17, 2010, at 12:18 , Dave Howell wrote: > > On Jun 17, 2010, at 12:14 , John W Higgins wrote: > >> I found a note about building curb which had the following as part of the >> fix >> >> sudo port install zlib +universal >> >> Potentially that will get zlib in the right spot for you. > > $ file /opt/local/lib/libz.dylib > libz.dylib: Mach-O 64-bit dynamically linked shared library x86_64 > > So I have a 64-bit libz.dylib. Gem is ignoring my /opt tree. But what the heck, I guess it's worth a try. . . . ---> Deactivating zlib @1.2.5_0 ---> Activating zlib @1.2.5_0+universal . . . $ file /opt/local/lib/libz.dylib /opt/local/lib/libz.dylib: Mach-O universal binary with 2 architectures /opt/local/lib/libz.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64 /opt/local/lib/libz.dylib (for architecture i386): Mach-O dynamically linked shared library i386 Well, that certainly confirms that "libz.dylib" is the zlib library, since now mine is multi-architecture. $ gem install nokogiri libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. {stunned silence} WTF? But libxml2 is what I installed LAST time it didn't work! $sudo port install libxml2 ---> Computing dependencies for libxml2 ---> Cleaning libxml2 As expected. Nothing was installed because it's as up to date as it gets. $ gem install nokogiri libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. [bangs head on table]