Adding Perl Modules? How?

3 posts / 0 new
Last post
#1 Wed, 02/22/2006 - 15:33
AdamHolt

Adding Perl Modules? How?

In virtualmin pro I go to the other tab, and click on perl modules, it shows me a bunch of modules installed, i need to install Image::MagicK perl module File::Copy perl module Image::Size perl module

So I type those into the cpan box, and it brings up a little box, where I search for one of those items, it finds it, there is what looks like a floppy disc icon and the name of the item

Either one clicked on does nothing but take me back to my perl modules page in the small page and no module is added.

Are all of these just part of the ImageMagicK that is already installed or what?

In any event on Suse 10.0 I can't get it to install and compile anything from cpan.

Sun, 06/07/2009 - 06:59
AdamHolt

Okay I figured it out, it's like the other things, pick from the little box, then go back to the big window and install, I installed Image::Size just fine no errors, but when I went to install Image::Magick
I got bombarded with errors like:

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/bin/perl /usr/lib/perl5/5.8.7/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.7/ExtUtils/typemap
Magick.xs] Magick.xsc && mv Magick.xsc Magick.c
cc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/incl
ude/libxml2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -D
_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g -Wall -pthread -O2 -march=i586 -mtune=i686 -fmessage
-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -pipe -DVERSION="6.2.4" -DXS_VERSION="6.2.4" -fPI
C "-I/usr/lib/perl5/5.8.7/i586-linux-thread-multi/CORE" -DHAVE_CONFIG_H Magick.c
Magick.xs:63:32: error: magick/ImageMagick.h: No such file or directory
Magick.xs:153: error: syntax error before 'MagickRealType'
Magick.xs:153: warning: no semicolon at end of struct or union
Magick.xs:160: error: syntax error before '*' token
Magick.xs:160: warning: type defaults to 'int' in declaration of 'image_reference'
Magick.xs:160: warning: data definition has no type or storage class
Magick.xs:170: error: syntax error before '}' token
Magick.xs:174: error: syntax error before 'ImageInfo'

Then it just bombed at the end of it all and said it didnt install try something else.

Any clues why it would do this on Suse 10.0?

Thu, 02/23/2006 - 17:01
Joe
Joe's picture

Hey Adam,

It looks like it is missing the header files for ImageMagick (possibly others). Perl packages often build some C wrappers, and so they need the headers for the software in question. These are contained in "-devel" packages on SUSE and Red Hat based systems.

You can install ImageMagick-devel using yast to resolve it. Or, a better choice is probably to get as many of your perl modules as possible from the yast software repository--they are pre-built for your platform. I don't know off-hand if SUSE provides the ImageMagicka module, however.

--

Check out the forum guidelines!

Topic locked