MakeMaker is broken on Mac OS X

Posted by mak3r on 2009-07-15 11:04
Forums: PPM | OS: OS X 10.4 (Panther)

I'm trying to convert wma files to flac, with pac, a perl package that needs the Audio-FLAC-Header, which isn't in the PPM repostitory. So, I'm trying to install a naked CPAN module which needs a library, libFLAC, which I've installed under /usr/local/lib. ActiveState perl doesn't seem to understand the following:

ppeter-rabbit:~/Audio-FLAC-Header-2.3 roger$ perl Makefile.PL LDDLFLAGS="-L/usr/local/lib"
/usr/local/lib/libFLAC.a
Found '/usr/local/lib/libFLAC.a'.
Writing Makefile for Audio::FLAC::Header
peter-rabbit:~/Audio-FLAC-Header-2.3 roger$ /usr/local/ActivePerl-5.8/bin/perl Makefile.PL LDDLFLAGS="-L/usr/local/lib"
* libFLAC is not installed or not in the default lib path. Aborting.
peter-rabbit:~/Audio-FLAC-Header-2.3 roger$ /usr/local/ActivePerl-5.8/bin/ppm peter-rabbit:~/Audio-FLAC-Header-2.3 roger$ /usr/local/ActivePerl-5.8/bin/perl Makefile.PL LIBS="-L/usr/local/lib"
* libFLAC is not installed or not in the default lib path. Aborting.

but libFLAC really is there:

peter-rabbit:~/Audio-FLAC-Header-2.3 roger$ ls /usr/local/lib/libFLAC*
/usr/local/lib/libFLAC++.6.2.0.dylib /usr/local/lib/libFLAC++.la /usr/local/lib/libFLAC.dylib
/usr/local/lib/libFLAC++.6.dylib /usr/local/lib/libFLAC.8.2.0.dylib /usr/local/lib/libFLAC.la
/usr/local/lib/libFLAC++.a /usr/local/lib/libFLAC.8.dylib
/usr/local/lib/libFLAC++.dylib /usr/local/lib/libFLAC.a

Is there a way of getting the perl to understand that the libFLAC library is in /usr/local/lib? I'm using 5.8, but I get the same results with 5.10.