dthacker has asked for the wisdom of the Perl Monks concerning the following question:

I've been asked to load Image::Magick on our AIX system. Current perl version is 5.00503. (Yes, an upgrade is slated Real Soon Now.) We're using the AIX 'c' compiler. CPAN is giving me the lots of errors (listed below the readmore) We have used CPAN sucessfully before, though not on such a complex module. Thanks in advance if you can help!

Dave
cc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/include/freety +pe2 -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/X11 - +D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 -O -D +VERSION=\"5.39\" -DXS_VERSION=\"5.39\" -I/usr/local/lib/perl5/5.005 +03/aix/CORE -DHAVE_CONFIG_H Magick.c "Magick.xs", line 76.10: 1506-296 (S) #include file <magick/api.h> not + found. "Magick.xs", line 130.3: 1506-046 (S) Syntax error. "Magick.xs", line 135.1: 1506-278 (S) The structure definition must sp +ecify a member list. "Magick.xs", line 151.3: 1506-046 (S) Syntax error. "Magick.xs", line 434.8: 1506-166 (S) Definition of function Image req +uires parentheses. "Magick.xs", line 435.3: 1506-276 (S) Syntax error: possible missing ' +{'? "Magick.xs", line 473.8: 1506-045 (S) Undeclared identifier info. "Magick.xs", line 476.58: 1506-046 (S) Syntax error. "Magick.xs", line 477.67: 1506-046 (S) Syntax error. "Magick.xs", line 521.15: 1506-045 (S) Undeclared identifier BlobError +. "Magick.xs", line 523.15: 1506-045 (S) Undeclared identifier BlobWarni +ng. "Magick.xs", line 529.15: 1506-045 (S) Undeclared identifier CacheErro +r. "Magick.xs", line 531.15: 1506-045 (S) Undeclared identifier CacheWarn +ing. "Magick.xs", line 533.15: 1506-045 (S) Undeclared identifier CorruptIm +ageError. "Magick.xs", line 535.15: 1506-045 (S) Undeclared identifier CorruptIm +ageWarning. "Magick.xs", line 541.15: 1506-045 (S) Undeclared identifier DelegateE +rror. "Magick.xs", line 543.15: 1506-045 (S) Undeclared identifier DelegateW +arning. "Magick.xs", line 549.15: 1506-045 (S) Undeclared identifier FatalExce +ption. "Magick.xs", line 551.15: 1506-045 (S) Undeclared identifier FileOpenE +rror. "Magick.xs", line 553.15: 1506-045 (S) Undeclared identifier FileOpenW +arning. "Magick.xs", line 559.15: 1506-045 (S) Undeclared identifier MaxRGB. "Magick.xs", line 561.15: 1506-045 (S) Undeclared identifier MissingDe +legateError. "Magick.xs", line 563.15: 1506-045 (S) Undeclared identifier MissingDe +legateWarning. "Magick.xs", line 571.15: 1506-045 (S) Undeclared identifier OpaqueOpa +city. "Magick.xs", line 573.15: 1506-045 (S) Undeclared identifier OptionErr +or. "Magick.xs", line 575.15: 1506-045 (S) Undeclared identifier OptionWar +ning. "Magick.xs", line 587.15: 1506-045 (S) Undeclared identifier ResourceL +imitError. "Magick.xs", line 589.15: 1506-045 (S) Undeclared identifier ResourceL +imitWarning. "Magick.xs", line 595.15: 1506-045 (S) Undeclared identifier StreamErr +or. "Magick.xs", line 597.15: 1506-045 (S) Undeclared identifier StreamWar +ning. "Magick.xs", line 605.15: 1506-045 (S) Undeclared identifier Transpare +ntOpacity. "Magick.xs", line 611.15: 1506-045 (S) Undeclared identifier XServerEr +ror. "Magick.xs", line 613.15: 1506-045 (S) Undeclared identifier XServerWa +rning. "Magick.xs", line 683.46: 1506-275 (S) Unexpected text error encounter +ed. "Magick.xs", line 687.10: 1506-045 (S) Undeclared identifier MaxTextEx +tent. "Magick.xs", line 694.65: 1506-045 (S) Undeclared identifier error. "Magick.xs", line 743.8: 1506-166 (S) Definition of function Image req +uires parentheses. "Magick.xs", line 743.14: 1506-276 (S) Syntax error: possible missing +'{'? "Magick.xs", line 746.3: 1506-045 (S) Undeclared identifier Image. "Magick.xs", line 747.6: 1506-045 (S) Undeclared identifier image. "Magick.xs", line 749.8: 1506-045 (S) Undeclared identifier reference. "Magick.xs", line 759.10: 1506-045 (S) Undeclared identifier head. "Magick.xs", line 760.10: 1506-045 (S) Undeclared identifier previous. "Magick.xs", line 762.7: 1506-275 (S) Unexpected text 'int' encountere +d. "Magick.xs", line 763.9: 1506-045 (S) Undeclared identifier n. "Magick.xs", line 765.7: 1506-046 (S) Syntax error.

Replies are listed 'Best First'.
(tye)Re: Problems installing Image::Magick on AIX 4.3.2
by tye (Sage) on Oct 26, 2001 at 19:26 UTC

    This looks like a problem of not seeing the forest due to all of the trees. "#include file <magick/api.h>" is a serious error that could easily be causing all of the other errors. You need to figure that one out first thing.

    Your compiler's -I option is likely to come in handy.

            - tye (but my friends call me "Tye")
Re: Problems installing Image::Magick on AIX 4.3.2
by boo_radley (Parson) on Oct 26, 2001 at 19:23 UTC
    `That PROVES his guilt,' said the Queen.

    `It proves nothing of the sort!' said Alice. `Why, you don't even know what they're about!'

    `Read them,' said the King.

    The White Rabbit put on his spectacles. `Where shall I begin, please your Majesty?' he asked.

    `Begin at the beginning,' the King said gravely, `and go on till you come to the end: then stop.'

    These were the verses the White Rabbit read:--

    "Magick.xs", line 76.10: 1506-296 (S) #include file <magick/api.h> not + found.