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).

6 comments

Comments

  1. Henri Aguesse said 2 days later:

    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~

  2. EC said 28 days later:

    Thanks for the tip! It worked like a charm.

  3. Mike said about 1 month later:

    THANKS!

  4. Steve said about 1 month later:

    Just what the doctor ordered!

  5. Tux Maniac said about 1 year later:

    Cool! This worked perfect!

  6. Aidan said about 1 year later:

    swEET. Cheers!

Comments are disabled