From: Dave Howell Date: 2010-06-18T03:46:00+09:00 Subject: Dear gem: still no zlib. I really really regret ever installing SnowLeopard. I'm trying to build some HTML. I'd been using LibXML, but it's getting seriously anal-retentive on me, escaping stuff that I don't want escaped and complaining about not mixing documents. I figured I'd look for something that wouldn't keep interfering with me getting my work done. Hmm! Looks like Nokogiri might do that, and it's already installed. Let's try that. >> require 'nokogiri' ...no suitable image found. Did find: . . ./nokogiri.bundle: mach-o, but wrong architecture $*@*X&#&%&*#&*@#*$*#& Stupid SnowLeopard. Fine! $ gem uninstall nokogiri [But lots of things depend on this!] Yea, I know. Delete it anyway. $ gem install nokogiri zlib is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. [bang head on desk] [visit nokogiri.org] "Because Nokogiri needs to be compiled and dynamically linked against both libxml2 and libxslt, it has gained a reputation for being complicated to install. Let’s wrassle this little myth to the ground, shall we? The following should work on both Leopard and Snow Leopard: sudo port install libxml2 libxslt sudo gem install nokogiri" I'm pretty sure I already did this. . . . $ sudo port install libxml2 libxslt ---> Computing dependencies for libxml2 ---> Cleaning libxml2 ---> Computing dependencies for libxslt ---> Cleaning libxslt $ sudo gem install nokogiri zlib is missing. Newsflash: Myth that nokogiri hard to install? Not wrassled to ground. News Addenda: *Anything* that requires a port install is NOT easy to install. Installing MacPorts (a few months ago) was a nightmare. gem tells me that I have some options: --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib These absolutely mystify me. If i'm going to tell it I want it to install a gem WITHOUT a library, why would I tell it where the library is? I want to tell it to build WITH the library. THAT library. The one sitting RIGHT OVER THERE. Well, at least I *think* it's over there. I have /opt/local/lib/libz.dylib -> libz.1.2.5.dylib. Is that some other library that does some other z-shaped thing? If not, how the heck do I make rubygems USE it? $*@(#*$&*%)~!($ 64-bit library hell.