Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Strawberry and CPAN

by EvanCarroll (Chaplain)
on Aug 01, 2008 at 19:30 UTC ( [id://701763]=note: print w/replies, xml ) Need Help??


in reply to Strawberry and CPAN

The problem here is often ImageMagick not being installed. You have to install it first. Then you can install Image::Magick. The build system should handle this better. I just had this problem.
D:\dbsync>cpanp install Image::Magick [MSG] No 'C:\Documents and Settings\BradKing\Application Data\.cpanplu +s\custom-s ources' dir, skipping custom sources Installing Image::Magick (6.004000) Running [C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\bin\cpanp- +run-perl.b at C:\DOCUME~1\BradKing\APPLIC~1\CPANPL~1\510~1.0\build\PerlMagick-6.4 +0\Makefile .PL ]... Note (probably harmless): No library found for -lMagickCore Note (probably harmless): No library found for -lMagickWand Writing Makefile for Image::Magick [ERROR] MAKE failed: Bad file descriptor [ERROR] Unable to create a new distribution object for 'Image::Magick' + -- cannot continue *** Install log written to: C:\Documents and Settings\BradKing\Application Data\.cpanplus\instal +l-logs\Ima ge-Magick-6.004000-1217616167.log Error installing 'Image::Magick' Problem installing one or more modules


Evan Carroll
I hack for the ladies.
www.EvanCarroll.com

Replies are listed 'Best First'.
Re^2: Strawberry and CPAN
by SavannahLion (Pilgrim) on Sep 30, 2009 at 06:16 UTC

    Update: In a fit, I decided to focus on something that I can try to zero in on. ppm install Image-Magick which netted me mkdir D:\: Permission denied; The device is not ready at C:/strawberry/perl/site/lib/PPM.pm line 333

    I know I don't have a valid D:\ drive and I can find the offending PPM.pm file and line. Navigating there, I found the following at lines 332 and 333.

    my $install_dir = "$options{'BUILDDIR'}/$current_package{'NAME'}-$ +$"; File::Path::rmtree($install_dir,0,0);

    A quick debug showed $option{'BUILDER'} was set to an impossible directory on the D:\ drive. A quick search turned up $options{'BUILDDIR'} = $elem->{BUILDDIR}; near line 1766.

    Seeing as how it's 12:30AM and this is night #2 at this, I decided to just modify the variable right then and there. It's a kludge and probably won't hold up in production but a quick match to see if the drive letter exists and a Q&D substitution got me going. Whooohooo! Image::Magick installed without a hitch.

    I'll leave this comment here for archival purposes. I tried a lot of solutions out there, but none actually suggested going in and seeing what PPM.pm was actually doing. Since I got Image::Magick installed and working with the above method, I did not bother going any further with resolving any of the other problems with cpan or the alternate alternate ppm install method.

    I get the same issue.

    Windows XP SP3
    Strawberry Perl 5.10.0.6 (Also tried it with the most recent ActivePerl as of this writing)
    Image Magick 6.5.6-5-Q16 Precompiled Windows Dynamic DLL.


    This is maddeningly frustrating since I had this functioning on a prior Perl install. The old install was so old, that that particular distribution of Perl no longer exists. So I switched to Strawberry.

    Using Cpan, I get the above error noted by Evan. If I attempt the ppm install Image-Magick I get the following error: mkdir D:\: Permission denied; The device is not ready at C:/strawberry/perl/site/lib/PPM.pm line 333 (Note: D:\ is my DVD-ROM drive). So I tried ppm install ImageMagick.ppd and I get the following failure: Can't locate object method "rvalidate" via package "PPM::XML::PPD::html" at C:/strawberry/perl/site/lib/PPM.pm line 1687.

    I could fall back to using the Linux box since it has a functioning Perl and Image::Magick install but I really don't want to dig through my closet to figure out where it is and attach a monitor/keyboard/USB drive to it.

    I'm tired of banging my head on this. What is it that I'm missing? How can I capture the output from cpan for analyzing? (tried piping but I get only partial output, not enough to analyze).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://701763]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-24 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found