sudo env ARCHFLAGS="-arch x86_64" gem install id3lib-ruby -- --with-opt-dir=/opt/local
UPDATE 1) Hold up... there is an easier way..
sudo env ARCHFLAGS="-arch i386" gem install id3lib-ruby -- --with-opt-dir=/sw
Confirm the result with this
arch -i386 irb >> require 'id3lib' => true >> tag = ID3Lib::Tag.new('talk.mp3') => [] >>
ORIGINAL POST:
The default id3lib gem is way to stale for it to build on OSX 10.6...
so you need to start hacking stuff, in truth the maintainer is already
handled the problems u just need the newest version..
download the source code and untar it;
http://github.com/robinst/id3lib-ruby (the upper right has the
download source link or just git it)
then do this;
export PATH=/sw export DYLD_LIBRARY_PATH=/sw/lib cd to/the/source sudo CONFIGURE_ARGS="--with-opt-dir=/usr/local" ruby setup.rbconfirm success with $ irb >> require 'rubygems' => false >> require 'id3lib' => true >>
No comments:
Post a Comment