I’m on Lion, I’ve installed xcode 4.1, and rvm version is 1.6.31 head
Here’s what I did:
$ rvm install 1.9.2-p290 --with-iconv-dir=/usr/local/Cellar/libiconv/1.13.1
The iconv dir points to the Brew install.
Here is the output
Here is the make.log
The error at the bottom of the make.log looks like it’s trying to use the native libiconv instead of the one I specified:
ld: in /Developer/SDKs/MacOSX10.7.sdk/usr/local/lib/libiconv.2.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64) for architecture x86_64
Any ideas?
When upgrading from 10.5 to 10.6 I had to nuke out all my installed source-built libraries and start over to fully resolve the 32-bit to 64-bit conversion issues. You may find you need to force-rebuild all of your brew packages.
Under MacPorts you just remove the
/optdirectory, salvaging any database files that might be in there first, and re-install everything again. I’m sure there’s a similar procedure for Brew.There’s a way to alter the library load path, too, to set priority, but MacPorts does seem to handle this for you.
otoolcan help diagnose which libraries are being loaded: