Image::Magick installation failed 
Author Message
 Image::Magick installation failed

Hi all I am to install Image::Magick,

the error messages said:

cc -c -I../ -I.. -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/
path

os/home/cristy/ImageMagick/bzlib -I/pathos/home/cristy/ImageMagick/hdf/hdf/s
rc -

I/pathos/home/cristy/ImageMagick/jbig/libjbig -I/pathos/home/cristy/ImageMag
ick/

jpeg -I/pathos/home/cristy/ImageMagick/zlib -I/pathos/home/cristy/ImageMagic
k/pn

g -I/pathos/home/cristy/ImageMagick/tiff/libtiff -I/pathos/home/cristy/Image
Magi

ck/ttf -I/pathos/home/cristy/ImageMagick/ttf/lib -I/pathos/home/cristy/Image
Magi

ck/ttf/lib/.libs -I/usr/local/include -I/usr/openwin/include -I/usr/openwin/
incl

/X11 -Dbool=char -DHAS_BOOL -I/usr/local/include -O2    -DVERSION=\"5.20\" -
D

XS_VERSION=\"5.20\" -fpic -I/usr/lib/perl5/i386-linux/5.00404/CORE -DHAVE_CO
NFIG
 _H Magick.c
 Magick.xs:78: magick/api.h: No such file or directory
 make: *** [Magick.o] Error 1

and the README document says that i have to LIBS and INC to include the
appropriate path information to the required libMagick library.

But I have no ideas to change the LIBS and INC though I found them at
MAKEFILE.PL
Could anybody tell me how should I do?

Thousands of Thanks!!!!

-----------------------------------------------
## MAKEFILE.PL
-----------------------------------------------
# Generated automatically from Makefile.PL.in by configure.
use ExtUtils::MakeMaker;
use Config;

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME' => 'Image::Magick',
    'VERSION_FROM' => 'Magick.pm', # finds $VERSION
    'LIBS' =>
['-L/pathos/home/cristy/ImageMagick/bzlib -L/pathos/home/cristy/ImageMagick/
hdf/hdf/src -L/pathos/home/cristy/ImageMagick/jbig/libjbig -L/pathos/home/cr
isty/ImageMagick/jpeg -L/pathos/home/cristy/ImageMagick/zlib -L/pathos/home/
cristy/ImageMagick/png -L/pathos/home/cristy/ImageMagick/tiff/libtiff -L/pat
hos/home/cristy/ImageMagick/ttf -L/pathos/home/cristy/ImageMagick/ttf/lib -L
/pathos/home/cristy/ImageMagick/ttf/lib/.libs -L/usr/local/lib -L/usr/openwi
n/lib -R/usr/openwin/lib -L/usr/local/lib -lMagick -ljbig -ldf -ltiff -lttf
-ljpeg -lpng -ldpstk -ldps -lXext -lXt -lX11 -lsocket -lnsl -lbz2 -lz -lpthr
ead -lm'],
    'DEFINE' => '-DHAVE_CONFIG_H',     # e.g., '-DHAVE_SOMETHING'
    'INC' =>
'-I../ -I.. -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/patho
s/home/cristy/ImageMagick/bzlib -I/pathos/home/cristy/ImageMagick/hdf/hdf/sr
c -I/pathos/home/cristy/ImageMagick/jbig/libjbig -I/pathos/home/cristy/Image
Magick/jpeg -I/pathos/home/cristy/ImageMagick/zlib -I/pathos/home/cristy/Ima
geMagick/png -I/pathos/home/cristy/ImageMagick/tiff/libtiff -I/pathos/home/c
risty/ImageMagick/ttf -I/pathos/home/cristy/ImageMagick/ttf/lib -I/pathos/ho
me/cristy/ImageMagick/ttf/lib/.libs -I/usr/local/include -I/usr/openwin/incl
ude -I/usr/openwin/include/X11',
    ($Config{'archname'} =~ /-object$/i ? ('CAPI' => 'TRUE') : ()),
);

#
# Modify the MakeMaker test fragment
#
sub MY::test
{
   #
   # List any ImageMagick features derived from add-on libraries
   # or programs you would like to test.
   #
   # Valid choices are:
   #
   #  Feature   Formats Tested  Prerequisites
   #  =======   ======================
======================================
   #   bzlib    BZip compression        BZip library
   #   cgm CGM format  'ralcgm' program
   #   hdf HDF format  HDF library
   #   jbig JBIG format  JBIG library
   #   jpeg  JPEG format  JPEG library
   #   mpeg MPEG format  'mpeg2decode' & 'mpeg2encode' programs
   #   png PNG format  PNG and Zlib libraries
   #   ps postscript format 'gs' program and/or DPS library
   #   rad Radiance format  'ra_ppm' program
   #   tiff TIFF format  TIFF library
   #   ttf TrueType font format FreeType library
   #   x X11 support  X-windows libraries and server
   #   xfig Xfig format  'transfig' program
   #   zlib Zip compression  Zlib library
   #

   #

x xfig zlib/;

   package MY; # so that "SUPER" works right

   my $delegate_tests='';
   my $delegate;

     if( -d "t/$delegate" ) {
       $delegate_tests .= " t/$delegate/*.t";
    }
   }
   $inherited =~ s:^TEST_FILES =.*:TEST_FILES = t/*.t ${delegate_tests}:m;
   #
   # Only test installed PerlMagick due to portability problems
   # and because PerlMagick does not link against the uninstalled
   # ImageMagick library.
   #
   $inherited =~ s:PERL_DL_NONLAZY=1 ::mg;
   $inherited;

Quote:
}

--------------------------------------------


Wed, 18 Jun 1902 08:00:00 GMT  
 Image::Magick installation failed

Quote:
> Hi all I am to install Image::Magick,
> the error messages said:
[ ... ]
>  Magick.xs:78: magick/api.h: No such file or directory
>  make: *** [Magick.o] Error 1
> and the README document says that i have to LIBS and INC to include the
> appropriate path information to the required libMagick library.

In Makefile.PL, you'll see lines like
     'LIBS' => ['-L/pathos/home/cristy/ImageMagick/bzlib ....'],
     'INC' => '-I../ ....',
For LIBS, make sure that one of the -L/blah/blah entries
corresponds to a location where libMagick.* is located
(as well, make sure that the path to your X libraries
(eg, libX11.*) is also included as one of the -L entries).
For INC, make sure that one of the -I/blah/blah entries
corresponds to a directory that has in it a
subdirectory "magick" that contains the .h files for
ImageMagick (eg, api.h). Then run 'perl Makefile.PL'
again. You may get some warnings  (suggested as
'probably harmless') about not finding certain libraries,
but if it compiles OK in the end, then these warnings
are really harmless.

best regards,
randy kobes



Wed, 18 Jun 1902 08:00:00 GMT  
 Image::Magick installation failed
Thanks for your helps!!

I have corrected some paths, but I cant still find a subdirectory that is
named Magick with .h files liked api.h, so returns the error message
"Magick.xs:78: magick/api.h: No such file or directory".

Could you give me some clues again?

Thanks very much!!

Quote:
----- Original Message -----

Newsgroups: comp.lang.perl.misc
Sent: Wednesday, June 28, 2000 10:04 PM
Subject: Re: Image::Magick installation failed


> > Hi all I am to install Image::Magick,
> > the error messages said:
> [ ... ]
> >  Magick.xs:78: magick/api.h: No such file or directory
> >  make: *** [Magick.o] Error 1

> > and the README document says that i have to LIBS and INC to include the
> > appropriate path information to the required libMagick library.

> In Makefile.PL, you'll see lines like
>      'LIBS' => ['-L/pathos/home/cristy/ImageMagick/bzlib ....'],
>      'INC' => '-I../ ....',
> For LIBS, make sure that one of the -L/blah/blah entries
> corresponds to a location where libMagick.* is located
> (as well, make sure that the path to your X libraries
> (eg, libX11.*) is also included as one of the -L entries).
> For INC, make sure that one of the -I/blah/blah entries
> corresponds to a directory that has in it a
> subdirectory "magick" that contains the .h files for
> ImageMagick (eg, api.h). Then run 'perl Makefile.PL'
> again. You may get some warnings  (suggested as
> 'probably harmless') about not finding certain libraries,
> but if it compiles OK in the end, then these warnings
> are really harmless.

> best regards,
> randy kobes




> > Hi all I am to install Image::Magick,
> > the error messages said:
> [ ... ]
> >  Magick.xs:78: magick/api.h: No such file or directory
> >  make: *** [Magick.o] Error 1

> > and the README document says that i have to LIBS and INC to include the
> > appropriate path information to the required libMagick library.

> In Makefile.PL, you'll see lines like
>      'LIBS' => ['-L/pathos/home/cristy/ImageMagick/bzlib ....'],
>      'INC' => '-I../ ....',
> For LIBS, make sure that one of the -L/blah/blah entries
> corresponds to a location where libMagick.* is located
> (as well, make sure that the path to your X libraries
> (eg, libX11.*) is also included as one of the -L entries).
> For INC, make sure that one of the -I/blah/blah entries
> corresponds to a directory that has in it a
> subdirectory "magick" that contains the .h files for
> ImageMagick (eg, api.h). Then run 'perl Makefile.PL'
> again. You may get some warnings  (suggested as
> 'probably harmless') about not finding certain libraries,
> but if it compiles OK in the end, then these warnings
> are really harmless.

> best regards,
> randy kobes



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Installation of Image::Magick

2. Image::Magick installation error, please help

3. Failed to install Image::Magick

4. Image::Magick install failing

5. Image Magick finding image size without loading image

6. Need help with Perl::Magick (Image::Magick)

7. Can't load Magick.so for module Image::Magick

8. Converting images without Image::Magick

9. Image::Magick: find the last image read

10. Merging and splitting of images with Image::Magick

11. convert jpg-images to tiff format with image-magick on winnt

12. Image Magick and returning images to a web page

 

 
Powered by phpBB® Forum Software