From: Ben Bleything Date: 2010-06-18T07:17:07+09:00 Subject: Re: Dear gem: still no zlib. On Thu, Jun 17, 2010 at 12:57 PM, Dave Howell wrote: > Actually, this WAS a clean install. It took me over a month to > get all my tools re-installed. However, not all of the installers > correctly installed 64-bit versions. Postgres was a particular > nightmare. Because it stuffed 32-bit libraries all over the place, > everything that linked to it automatically degraded to 32-bit, and I > ended up with all kinds of stuff that didn't work. My mistake. Jumped to conclusions there. Your experience is why I don't use installers anymore, though... I used to build postgres from macports, then from source, but these days I use homebrew... if you haven't heard of it, you should check it out... it's sort of the sane macports, works with what you've already got so the dependency situation is much, much nicer. http://github.com/mxcl/homebrew > Oh, I know, I know. I HATE MacPorts. I hate hate hate having to > install something that is already on my system, but is 'too old' or > the 'wrong version,' because I have wasted many hours chasing down > problems from my command line using one version and XCode-developed > apps using another. Yeah. Homebrew :D > In fact, it was impossible to get all this fixed without MacPorts, > because that was the only way I could get a 64-bit version of > Postgres. The packaged binary installer gave me 32-bit. I tried > recompiling from the source version I had already, and it blew up in > every direction with unfulfilled dependencies. Homebrew :D > I suspect zlib and libxml were dependencies of Postgres, and, > of course, MacPorts would never link to the existing system > libraries. Ewww. {roll eyes} Macports sucks in this particular way.:( > But that certainly suggests a possible solution. "Erase" the MacPorts tree. > > $ mv /opt /non-opt > $ gem install nokogiri > Building native extensions.  This could take a while... > Successfully installed nokogiri-1.4.2 > 1 gem installed > $ file .../lib/nokogiri/nokogiri.bundle > lib/nokogiri/nokogiri.bundle: Mach-O universal binary with 2 architectures > lib/nokogiri/nokogiri.bundle (for architecture i386):   Mach-O bundle i386 > lib/nokogiri/nokogiri.bundle (for architecture x86_64): Mach-O 64-bit bundle x86_64 > > Bloody hell. Thanks, Ben, you rock. I'm really glad that worked! Ben