Using Randal's instructions (quoted below my signature) on OS X 10.1.5, with perl 5.6.1 installed, I get the following when I attempt to test my installation of PerlMagick:
$ perl -MImage::Magick -e 'print "OK\n"' dyld: perl Undefined symbols: _AcquireMemory _AddNoiseImage _AllocateString #-- 60 additional lines of undefined symbols omitted Now, I know from reading this mailing list that the "Undefined symbols" indicate library conflicts, but I'm at a loss to figure out what's conflicting with what. Any help or suggestions would be greatly appreciated! Here's the output when I export DYLD_PRINT_LIBRARIES: $ perl -MImage::Magick -e 'print "OK\n"' loading libraries for image: perl loading library: /System/Library/Perl/darwin/CORE/libperl.dylib loading library: /usr/lib/libSystem.B.dylib loading libraries for image: /System/Library/Perl/darwin/CORE/libperl.dylib loading libraries for image: /usr/lib/libSystem.B.dylib loading libraries for image: /sw/lib/perl5/darwin/auto/Image/Magick/Magick.bundle loading library: /sw/lib/libtiff.3.dylib loading library: /sw/lib/libfreetype.6.dylib loading library: /sw/lib/libjpeg.62.dylib loading library: /sw/lib/libpng.2.dylib loading library: /usr/X11R6/lib/libdpstk.1.dylib loading library: /usr/X11R6/lib/libdps.1.dylib loading library: /usr/X11R6/lib/libXext.6.dylib loading library: /usr/X11R6/lib/libXt.6.dylib loading library: /usr/X11R6/lib/libSM.6.dylib loading library: /usr/X11R6/lib/libICE.6.dylib loading library: /usr/X11R6/lib/libX11.6.dylib loading library: /sw/lib/libbz2.1.dylib loading library: /sw/lib/libiconv.2.dylib loading library: /sw/lib/libxml2.2.dylib loading library: /usr/lib/libz.1.1.3.dylib loading libraries for image: /sw/lib/libtiff.3.dylib loading libraries for image: /sw/lib/libfreetype.6.dylib loading libraries for image: /sw/lib/libjpeg.62.dylib loading libraries for image: /sw/lib/libpng.2.dylib loading libraries for image: /usr/X11R6/lib/libdpstk.1.dylib loading libraries for image: /usr/X11R6/lib/libdps.1.dylib loading libraries for image: /usr/X11R6/lib/libXext.6.dylib loading libraries for image: /usr/X11R6/lib/libXt.6.dylib loading libraries for image: /usr/X11R6/lib/libSM.6.dylib loading libraries for image: /usr/X11R6/lib/libICE.6.dylib loading libraries for image: /usr/X11R6/lib/libX11.6.dylib loading libraries for image: /sw/lib/libbz2.1.dylib loading libraries for image: /sw/lib/libiconv.2.dylib loading libraries for image: /sw/lib/libxml2.2.dylib loading libraries for image: /usr/lib/libz.1.1.3.dylib dyld: perl Undefined symbols: _AcquireMemory _AddNoiseImage #-- etc. Here's my perl -V: Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=darwin, osvers=1.4, archname=darwin uname='darwin g3 1.4 darwin kernel version 1.4: sun sep 9 15:39:59 pdt 2001; root:xnuxnu-201.obj~1release_ppc power macintosh powerpc ' config_args='-des -Dfirstmakefile=GNUmakefile -Dldflags=-flat_namespace' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='cc', ccflags ='-pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -I/usr/local/include', optimize='-O3', cppflags='-pipe -fno-common -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='Apple devkit-based CPP 6.0', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags ='-flat_namespace -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-lm -lc perllibs=-lm -lc libc=/System/Library/Frameworks/System.framework/System, so=dylib, useshrplib=true, libperl=libperl.dylib Dynamic Linking: dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-flat_namespace -bundle -undefined suppress -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under darwin Compiled at 10/12/01 12:56:07 %ENV: PERL5LIB="/sw/lib/perl5" @INC: /sw/lib/perl5/darwin /sw/lib/perl5 /System/Library/Perl/darwin /System/Library/Perl /Library/Perl/darwin /Library/Perl /Library/Perl /Network/Library/Perl/darwin /Network/Library/Perl /Network/Library/Perl . -- David Dierauer Database Programmer CoreComm [EMAIL PROTECTED] 517-324-8957 On 3 Nov 2002, Randal L. Schwartz wrote: > >>>>> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes: > > Randal> Now here's the kicker. To install PerlMagick, you CANNOT INSTALL IT > Randal> FROM THE CPAN. I don't even know why they bother putting it there. > Randal> It's just confusing. You have to install the same version of > Randal> PerlMagick from the source of ImageMagick. > > Oops. Left out a couple of important steps: > > 1) "fink install imagemagick" (This will take a while) > 2) "fink list imagemagick" > 3) Note the version number (n.n.n-n) by the version you have installed. > 4) "cd; mkdir Build; cd Build" (getting to a scratchdir) > 5) "tar xvfz /sw/src/ImageMagick-n.n.n.tar.gz; cd Image*/PerlMagick/" > 5.5) edit Makefile.PL so that > LIBS begins with -L/sw/lib and INC begins with -I/sw/include > 6) "perl Makefile.PL; make all install" > 7) "cd; rm -rf Build" > >