For the solution to this problem please see the reply node below: [SOLUTION]: Getting PGPLOT running on Windows XP.

Howdy Everyone,

So some of you might have heard me rambling about this in the chatterbox earlier today, but I am having enough trouble that I figured I would make a full fledged post of it. I've been trying to install PDL onto my Windows XP box and have been running into some trouble. Essentially, PDL installs and works just fine, but I cannot seem to use the PGPLOT functionality of the language after installing it. I installed PDL by following the instructions found here for strawberry perl 5.10. So, I used the ppm utility and it seemed like everything installed correctly, including PGPLOT, OpenGL, and even a few dll files I was missing.

However, when I run the perldl shell from my command line, and try a command along the lines of use PDL::Graphics::PGPLOT, I end up getting the following errors:

Can't locate loadable object for module PGPLOT in @INC (@INC contains: + C:/strawberry/perl/lib C:/strawberry/perl/site/lib .) at C:/strawber +ry/perl/site/lib/PDL/Graphics/PGPLOT/Window.pm line 2272 Compilation failed in require at C:/strawberry/perl/site/lib/PDL/Graph +ics/PGPLOT/Window.pm line 2272, <STDIN> line 1. BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/PDL/G +raphics/PGPLOT/Window.pm line 2272, <STDIN> line 1. Compilation failed in require at C:/strawberry/perl/site/lib/PDL/Graph +ics/PGPLOT.pm line 148, <STDIN> line 1. BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/PDL/G +raphics/PGPLOT.pm line 148, <STDIN> line 1. Compilation failed in require at (eval 40) line 5, <STDIN> line 1. BEGIN failed--compilation aborted at (eval 40) line 5, <STDIN> line 1.

So far as I can tell, the Window.pm module is having some issues locating whatever is on line 2272: use PGPLOT;. Well the funny thing about that is that I have PGplot.pm installed right where it is supposed to be at: C:\strawberry\perl\site\lib\PDL\Graphics\PGplot.pm

So I have hit a bit of a wall. I did some Googling and found this thread. It appears someone had a similar problem, but managed to fix it by installing PGPlot...which I thought I had already done. I may be misunderstanding the nature of the PGplot.pm, but isn't that a full implementation of the program? Or do I need to be doing an independent install of PGPlot first?

I guess at this point I don't have a lot of ideas, I just know that I am unable to work with the plotting utilities of PDL on my Windows system and it is becoming quite frustrating. Does anyone have any ideas? Please feel free to request more information or details as you deem necessary.

Thank you all in advance.


In reply to [SOLVED]: PDL and PGPLOT on Windows XP by BJ_Covert_Action

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.