Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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).


In reply to Re^2: Strawberry and CPAN by SavannahLion
in thread Strawberry and CPAN by Cody Pendant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (None)
    As of 2024-04-25 04:00 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found