List Info

Thread: Installing PerlMagick on MacOSX




Installing PerlMagick on MacOSX
user name
2006-10-03 16:20:28
I am hoping someone here can assist me in installing this
perl module. I 
am running MacOSX 10.4.x and have used DarwinPorts (now
MacPorts) to 
install various libraries.

My first attempt was simply to do:

  > perl -MCPAN -e shell
  cpan> install Image::Magick

However, this failed with many errors.

I then when into the source directory (cpan> look
Image::Magick) and 
read the README.txt file to see if it would provide the
information 
needed to successfully build this module.

By using this line in the Makefile.PL, I believe I have
handled the 
various include errors I was getting:

  # Header search specfication and preprocessor flags
  'INC'        => '-I../ -I.. -I/usr/include/freetype2 
-I/usr/include/libxml2 -I/opt/local/include',
  (I added: -I/opt/local/include)

The place where I believe I am running into trouble is not
knowing 
exactly what in the Makefile.PL file needs to be changed
with respect to 
the various libraries.

To both:

   # Linker flags for building an executable
   'LDFLAGS'    =>  "-L../magick/.libs -L/usr/lib
$Config{'ldflags'}",

   # Linker flags for building a dynamically loadable module
   'LDDLFLAGS'  => "-L../magick/.libs -L/usr/lib
$Config{'lddlflags'}",

I attempted to add
 
  -L/opt/local/lib

and also attempted to change

   # Library specification
   'LIBS'       => ['-lMagick -llcms -ltiff -lfreetype
-ljpeg 
-lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz
-lpthread -lm 
-lpthread'],

to

   # Library specification
   'LIBS'       => ['-l/opt/local/lib/Magick -llcms
-ltiff -lfreetype 
-ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz
-lpthread -lm 
-lpthread'],

but, I continue to get the same errors when I enter:

  > perl Makefile.PL

which are:

  perl Makefile.PL
  Note (probably harmless): No library found for -lMagick
  Note (probably harmless): No library found for -llcms
  Note (probably harmless): No library found for -ltiff
  Note (probably harmless): No library found for -lfreetype
  Note (probably harmless): No library found for -ljpeg
  Note (probably harmless): No library found for
-lfontconfig
  Note (probably harmless): No library found for -lXext
  Note (probably harmless): No library found for -lSM
  Note (probably harmless): No library found for -lICE
  Note (probably harmless): No library found for -lX11
  Note (probably harmless): No library found for -lXt
  Writing Makefile for Image::Magick

I am assuming that because it cannot seem to find any of the
libraries 
that this is the cause for all of the errors I am getting
when I try to 
'make' it.

Here are the first few lines I get after I enter 'make':



cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm
(blib/lib/auto/Image/Magick)
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp 
-typemap 
/System/Library/Perl/5.8.6/ExtUtils/typemap  Magick.xs >
Magick.xsc && 
mv Magick.xsc Magick.c
cc -c  -I../ -I.. -I/usr/include/freetype2
-I/usr/include/libxml2 
-I/opt/local/include -g -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp 
-fno-strict-aliasing -I/usr/local/include -O3 -g -Wall
-pthread -O3   
-DVERSION="6.2.9"
-DXS_VERSION="6.2.9"  
"-I/System/Library/Perl/5.8.6/darwin-thread-multi-2leve
l/CORE"  
-DHAVE_CONFIG_H Magick.c
i686-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
Magick.xs:223: error: 'MagickInterpolateOptions' undeclared
here (not in 
a function)
Magick.xs: In function 'SetAttribute':
Magick.xs:1793: error: 'struct _ImageInfo' has no member
named 
'transparent_color'
Magick.xs:1793: warning: statement with no effect
Magick.xs:1795: error: 'struct _Image' has no member named 
'transparent_color'
Magick.xs:1795: warning: statement with no effect
Magick.xs:1904: error: 'struct _ImageInfo' has no member
named 
'virtual_pixel_method'
Magick.xs:1904: warning: statement with no effect
Magick.c: In function 'XS_Image__Magick_Animate':
Magick.c:2093: warning: unused variable 'ref'
Magick.c:2088: warning: unused variable 'ix'



If you have any hints, tips or detailed instructions on what
I need to 
do to get this up and running, I would appreciate it.

Thank you.






_______________________________________________
Magick-users mailing list
Magick-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )