Warning: I consider this tutorial outdated. Please switch to a better system like brew.
We are going to use MacPorts for this.
Install the prerequisite:
sudo port install id3lib
And install the 64-bit gem:
env ARCHFLAGS="-arch x86_64" gem install id3lib-ruby
Test:
16:53 ~ $ irb >> require 'id3lib' => true
NOT WORK!
checking for id3.h… no
id3.h is in /opt/local/include
with options –with-opt-include same result => cannot find id3.h
try the following:
sudo env ARCHFLAGS=”-arch x86_64″ gem install id3lib-ruby — –with-opt-dir=/opt/local/
it worked for me