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

Hi, I'm fairly new to Perl and I am trying to install PerlMagick. When I run 'ppm install Image-Magick.ppd' I get the following error:
C:\Program Files\ImageMagick-5.5.3-Q8\PerlMagick>ppm install Image-Mag +ick.ppd Error: PPM::PPD constructor called with undef ppd $VAR1 = 'PPM::Installer'; $VAR2 = 'C:/Perl/site/lib/PPM/Installer.pm'; $VAR3 = 151; $VAR4 = 'PPM::PPD::new'; $VAR5 = 1; $VAR6 = 1; $VAR7 = undef; $VAR8 = undef; $VAR9 = 2; $VAR10 = ' ';
What am I missing? I have the latest version of ImageMagick and I upgraded to ActivePerl 5.8.0 Any help would be greatly appreciated, thanks.
Butch

Replies are listed 'Best First'.
Re: ImageMagick not installing
by tachyon (Chancellor) on Dec 30, 2002 at 00:14 UTC

    ppm needs a .ppd file to install. You don't appear to have a valid one. There are two ways to use ppm. To automatically download and install you just do this:

    ppm install Image-Magick

    I have just tested this and it if working fine. You can run into issues with firewalls and proxies - see the docs.

    The other alternative is to download the zip file from active state, unzip it and then use the command you were trying as you should now have a valid ppd.

    If you are using a tarball (seems you may be) then do a google for your error - there is *plenty* of discussion about it. The instructions for doing the install are on the imagemagick site here http://www.imagemagick.org/www/perl.html

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      Image-Magick does not appear to be available from ActiveState. I tried what you said. I actually deleted the Image-Magick.ppd that came with the ImageMagick install and tried: ppm install Image-Magick. It came back saying that it couldn't find it.
      What repository do you have setup that has Image-Magick?
      Thanks,
      Butch
        Which version of perl do you have?

        The version you can get from imagemagick.org is for Perl5.8 (they haven't updated the installer to reflect this -- i've emailed them about it)

        http://ppm.ActiveState.com/cgibin/PPM/ppmserver.pl?urn:/PPMServer has a Image-Magick-5.26. It is a perl-5.6x compatible repository. I'm should be in your list.

        Here are some other 5.6 repositories (including mine)

        http://crazyinsomniac.perlmonk.org/perl/ppm/ http://ppd.develop-help.com/ppd/ http://www.roth.net/perl/packages/ http://www.xray.mpe.mpg.de/~ach/ptk/ppm/ http://theoryx5.uwinnipeg.ca/ppmpackages/ http://dada.perl.it/PPM http://jenda.krynicky.cz/perl http://rto.dk/packages/ http://openinteract.sourceforge.net/ppmpackages/ http://ppm.gingerall.cz http://www.epn.ml.org/~spurkis/Agent/repository http://homepage.eircom.net/~jmcnamara/perl http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer FOR PERL5.8, TRY http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 http://crazyinsomniac.perlmonk.org/perl/ppm/5.8/


        MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
        ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: ImageMagick not installing
by Beatnik (Parson) on Dec 30, 2002 at 00:04 UTC
    ActivePerl 5.6.x isn't binary compatible with 5.8. This means that you'll have to reinstall all modules you installed on 5.6.x (or previous), that is, if you want to use them (and they use libraries ofcourse).

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.
Re: ImageMagick not installing
by Anonymous Monk on Dec 30, 2002 at 20:11 UTC
    Did none of your read what he actually wrote? At the very least, you haven't tried to install IM lately. He's got Perl 5.8, he's got the latest ImageMagick installable (for 5.8), he's following the directions to install the local ppd from the correct directory, and it's not working.

    It looks to me like you did it correctly, but are you using ppm3? That might make a difference.