Installing id3lib-ruby gem on Leopard
Posted by Larry Karnowski Fri, 28 Mar 2008 00:26:00 GMT
Took me a bit to figure this out (big thanks to Sam U!), but it's actually pretty easy.
Install id3lib using MacPorts like so:
$ sudo port install id3lib
Then the harder part, install the id3lib-ruby gem as so:
$ sudo env ARCHFLAGS="-arch i386" gem install id3lib-ruby -- --build-flags --with-opt-dir=/opt/local
Note that you change the ARCHFLAGS to "-arch ppc" if you're using an older PowerPC Macintosh. Using the "/opt/local" build flag tells RubyGems to look in the MacPorts include directory for necessary headers (like id3.h).

Thanks Larry.
Much useful fix for id3lib-ruby on Leopard, and probably for other current gems installation problems due to privilege conflicts on Leopard's Ruby.
H~
Thanks for the tip! It worked like a charm.
THANKS!
Just what the doctor ordered!