Building ruby-filemagic on Leopard
I don't know whether anyone else is trying to do this, but I just wasted four hours of a perfectly good day getting this tiny piece to work right. To save you the time, here's what (finally) worked for me:
- Install MacPorts
sudo port install file- Download ruby-filemagic-0.1.1.tar.gz
- Open a shell and unpack it somewhere reasonable.
-
sudo -(This prompts for your password rather than the root password) -
cdto the ruby-filemagic-0.1.1 folder ARCHFLAGS="-arch i386" ruby extconf.rb --with-magic-dir=/opt/localmakemake install