custom include and library paths when building PerlMagick?
Posted: 2011-03-02T16:35:22-07:00
I am building Image Magick into a custom directory (with configure --prefix=...), and I also want to build Perl Magick.
With PerlMagick-6.59, I could use the following recipe:
tar zxf PerlMagick-6.59.tar.gz
cd PerlMagick-6.59
export IM_INC="-I$IM_HOME/include/ImageMagick "
export IM_LIB="-L$IM_HOME/lib "
perl Makefile.PL
make
make install
In this case $IM_HOME is where I have installed ImageMagick.
The above recipe doesn't seem to work for PerlMagick-6.67. I get the error:
Note (probably harmless): No library found for -lMagickCore
and the make fails with:
Magick.xs:64:31: error: magick/MagickCore.h: No such file or directory
Is there a way I can specify the Image Magick include path and library path on the 'perl Makefile.PL' command?
With PerlMagick-6.59, I could use the following recipe:
tar zxf PerlMagick-6.59.tar.gz
cd PerlMagick-6.59
export IM_INC="-I$IM_HOME/include/ImageMagick "
export IM_LIB="-L$IM_HOME/lib "
perl Makefile.PL
make
make install
In this case $IM_HOME is where I have installed ImageMagick.
The above recipe doesn't seem to work for PerlMagick-6.67. I get the error:
Note (probably harmless): No library found for -lMagickCore
and the make fails with:
Magick.xs:64:31: error: magick/MagickCore.h: No such file or directory
Is there a way I can specify the Image Magick include path and library path on the 'perl Makefile.PL' command?