the package you installed has (correctly, IMNSHO) been configured to use the default prefix of /usr/local. [...] edit ~/.bashrc

OK, got that part, thanks.

when troubleshooting, always look at the *first* error, not the last one. At the beginning of these hundreds of lines, you'll find the root cause, an error that looks like this:

Magick.xs:63:32: error: magick/ImageMagick.h: No such file or directory

Actually no. But I have got this:

cc: @CPPFLAGS@: No such file or directory
cc: @: No such file or directory
cc: @LFS_CPPFLAGS@: No such file or directory
cc: @DEFS@: No such file or directory
In file included from Magick.xs:63:
/usr/local/include/magick/ImageMagick.h:774: error: `MaxTextExtent' undeclared here (not in a function)

edit Makefile.PL and change LIBS and INC to include the appropriate path information

Since I wrote the email, I've been trying to do that (although the errors above seem to suggest that it's already looking in usr/local/) and I'm a bit lost.

This is what I have for LIBS:

'LIBS' => ['-L/usr/lib -lMagick -L/usr/X11R6/lib64 -L/usr/lib -ltiff -ljpeg -lpng -ldpstk -ldps -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lpthread -lm -lpthread']

and this is INC

'INC' => '-I../ -I.. -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2'

so, can I get a hint on how to change those things? Add new items, replace some of the ones there already? Add "/usr/local/" only or "/usr/local/lib/" or something more specific? I'm particularly mystified by the uppercase and lowercase "L"s.

Why would you expect a module to work in a manner that's contrary to what its documentation clearly states?

I don't, but I've become used to being able to look for errors in $!. I can see that this module is pretty much a wrapper around ImageMagick code and that "mogrify" and pals return nothing at all unless something's gone wrong, but ... I guess I've just never come across a module like that before. Plus, if some of its methods return values because they need to, and some of its methods only return values if something's gone wrong, that's confusing.

Reply via email to