Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Strawberry and CPAN

by SavannahLion (Pilgrim)
on Sep 30, 2009 at 06:16 UTC ( [id://798242] : note . print w/replies, xml ) Need Help??

in reply to Re: Strawberry and CPAN
in thread Strawberry and CPAN

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/ line 333

I know I don't have a valid D:\ drive and I can find the offending 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 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 (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/ 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/ 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).