For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2005 > Make errors for Image::Magick









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Make errors for Image::Magick
Philip Tham

2005-03-22, 3:56 am

After the command

perl -MCPAN -e shell I run the following commands

get Image::Magick

The source files were downloaded properly.

On Running the command make I get the following errors:

Need some advice. The installed version of perl is not currently
supporting multithreading.

Thanks in advance.

Philip

make Image::Magick
Running make for module Image::Magick
Running make for J/JC/JCRISTY/PerlMagick-6.20.tar.gz
Is already unwrapped into directory /.cpan/build/PerlMagick-6.20

CPAN.pm: Going to build J/JC/JCRISTY/PerlMagick-6.20.tar.gz

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lMagick
Note (probably harmless): No library found for -lfreetype
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 -lpng
Note (probably harmless): No library found for -ldpstk
Note (probably harmless): No library found for -ldps
Note (probably harmless): No library found for -lxml2
Writing Makefile for Image::Magick
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/usr/local/bin/perl /usr/local/lib/perl5/5.8.6/ExtUtils/xsubpp -typemap
/usr/local/lib/perl5/5.8.6/ExtUtils/typemap Magick.xs > Magick.xsc &&
mv Magick.xsc Magick.c
gcc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/X11R6/include
-I/usr/X11R6/include/X11 -I/usr/include/libxml2 -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 =
-g
-O2 -Wall -pthread -O -DVERSION=3D\"6.2.0\" -DXS_VERSION=3D\"6.2.0\"
-fPIC "-I/usr/local/lib/perl5/5.8.6/sun4-solaris/CORE"
-D_FILE_OFFSET_BITS=3D64 -DHAVE_CONFIG_H Magick.c
gcc: unrecognized option `-pthread'
Magick.xs:63:24: magick/api.h: No such file or directory
Magick.xs:152: error: parse error before "MagickRealType"
Magick.xs:152: warning: no semicolon at end of struct or union
Magick.xs:159: error: parse error before '*' token
Magick.xs:159: warning: type defaults to `int' in declaration of
`image_reference'
Magick.xs:159: warning: data definition has no type or storage class
Magick.xs:169: error: parse error before '}' token
Magick.xs:173: error: parse error before "ImageInfo"
Magick.xs:173: warning: no semicolon at end of struct or union
Magick.xs:177: warning: type defaults to `int' in declaration of
`draw_info'
Magick.xs:177: warning: data definition has no type or storage class
Magick.xs:180: error: parse error before '*' token
Magick.xs:180: warning: type defaults to `int' in declaration of
`quantize_info'
Magick.xs:180: warning: data definition has no type or storage class
Magick.xs:181: error: parse error before '}' token
Magick.xs:201: error: `MagickNoiseOptions' undeclared here (not in a
function)
Magick.xs:201: error: initializer element is not constant
Magick.xs:201: error: (near initialization for
`Methods[2].arguments[0].type')
Magick.xs:201: error: initializer element is not constant
Magick.xs:201: error: (near initialization for
`Methods[2].arguments[0]')
Magick.xs:201: error: initializer element is not constant
Magick.xs:201: error: (near initialization for `Methods[2].arguments')
Magick.xs:201: error: initializer element is not constant
Magick.xs:201: error: (near initialization for `Methods[2]')
Magick.xs:202: error: initializer element is not constant
Magick.xs:202: error: (near initialization for
`Methods[3].arguments[0]')
Magick.xs:202: error: initializer element is not constant
Magick.xs:202: error: (near initialization for
`Methods[3].arguments[1]')
Magick.xs:202: error: initializer element is not constant
Magick.xs:202: error: (near initialization for `Methods[3].arguments')
Magick.xs:202: error: initializer element is not constant
Magick.xs:202: error: (near initialization for `Methods[3]')
Magick.xs:203: error: initializer element is not constant
Magick.xs:203: error: (near initialization for
`Methods[4].arguments[0]')
Magick.xs:203: error: initializer element is not constant
Magick.xs:203: error: (near initialization for
`Methods[4].arguments[1]')
Magick.xs:204: error: initializer element is not constant
Magick.xs:204: error: (near initialization for
`Methods[4].arguments[2]')
Magick.xs:204: error: initializer element is not constant
Magick.xs:204: error: (near initialization for
`Methods[4].arguments[3]')
Magick.xs:205: error: initializer element is not constant
Magick.xs:205: error: (near initialization for
`Methods[4].arguments[4]')
Magick.xs:205: error: `MagickCompositeOptions' undeclared here (not in a
function)
Magick.xs:205: error: initializer element is not constant
Magick.xs:205: error: (near initialization for
`Methods[4].arguments[5].type')
Magick.xs:205: error: initializer element is not constant
Chris Devers

2005-03-22, 3:56 am

On Mon, 21 Mar 2005, Tham, Philip wrote:

> Need some advice. The installed version of perl is not currently
> supporting multithreading.


You seem to be using a custom Perl build in /usr/local/bin.

What happens if you try the stock Perl in /usr/bin ?

What operating system is this? If it's Linux, what distro is it; if it's
Unix, what vendor are you using; if anything, what version do you have?

If your OS offers a package management framework (such as Red Hat RPM,
Debian apt-get, Sun packages, MacOSX Fink, BSD ports, etc), why aren't
you using it? These things often solve such problems for you easily.

On my Mac, I just do something like

% sudo fink install imagemagick

On a Debian box, I'd do

$ sudo apt-get install imagemagick

On a Red Hat box... I'd install Debian :-)

But you see the point, I hope -- if your platform offers an package
management system, you should give it a try before spending too much
time on puzzling it out by yourself. Chances are very good that someone
out there has already automated this work for you.



--
Chris Devers cdevers@pobox.com
http://devers.homeip.net:8080/blog/

np: 'The Long Day Is Over'
by Norah Jones
from 'Come Away With Me'
Philip Tham

2005-03-22, 3:56 am



>-----Original Message-----
>From: Chris Devers [mailto:cdevers@pobox.com]=20
>Sent: Monday, March 21, 2005 5:06 PM
>To: Tham, Philip
>Cc: Perl Beginners List
>Subject: Re: Make errors for Image::Magick



>On Mon, 21 Mar 2005, Tham, Philip wrote:


[color=darkred]
>You seem to be using a custom Perl build in /usr/local/bin.


>What happens if you try the stock Perl in /usr/bin ?


>What operating system is this? If it's Linux, what distro is it; if

it's=20
>Unix, what vendor are you using; if anything, what version do you have?


>If your OS offers a package management framework (such as Red Hat RPM,=20
>Debian apt-get, Sun packages, MacOSX Fink, BSD ports, etc), why aren't=20
>you using it? These things often solve such problems for you easily.


I am using Perl 5.8.6 which was built on a sparc Solaris 2.8. It seems
to have a small complain on -pthread but I don't think that this is the
problem. I checked the build and the file api.h is not present in the
magick directory.

>On my Mac, I just do something like


> % sudo fink install imagemagick


>On a Debian box, I'd do


> $ sudo apt-get install imagemagick


>On a Red Hat box... I'd install Debian :-)


>But you see the point, I hope -- if your platform offers an package=20
>management system, you should give it a try before spending too much=20
>time on puzzling it out by yourself. Chances are very good that someone


>out there has already automated this work for you.




>--=20
>Chris Devers cdevers@pobox.com
>http://devers.homeip.net:8080/blog/


>np: 'The Long Day Is Over'
> by Norah Jones
> from 'Come Away With Me'

Chris Devers

2005-03-22, 3:56 am

On Mon, 21 Mar 2005, Tham, Philip wrote:

> I am using Perl 5.8.6 which was built on a sparc Solaris 2.8.


Okay, so why not start here?

<http://www.imagemagick.org/www/binary-releases.html>

There's a binary release for Solaris -- won't that work?

If you prefer to go to Sun for this, try here:

<http://www.sun.com/software/solaris/freeware/>

In 30 seconds on Google, I found lots of installers for this...


I'm not sure, but I assume that the Perl that came with Solaris should
have worked with ImageMagick / PerlMagick, but I don't have a Sun
machine handy to verify this...



--
Chris Devers cdevers@pobox.com
http://devers.homeip.net:8080/blog/

np: 'Mr Knight'
by John Coltrane
from 'The Heavyweight Champion - The Complete Atlantic Recordings'
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com