in reply to Re^8: PDL installation
in thread PDL installation

First thing I notice with p.txt is that none of the pre-requisites (OpenGL, Astro-FITS-Header, Inline) are installed in /usr/bin/perl. I'm starting to seriously consider the possibility that the cpan shell you were using was, in fact, attached to ActivePerl. Are OpenGL, Inline and Astro-FITS-Header installed in ActivePerl ?

As regards m.txt, the failure occurs because the the path to your working directory contains spaces in it - ie the two spaces in "Documents and Settings". I think this may have been fixed in the git source. Best thing to do would be to build PDL in a directory that doesn't contain any spaces in its name - then you might have success.

But first, install Parse::RecDescent (needed by Inline), Inline (agree to the prompt during the perl Makefile.PL stage to install Inline::C), Astro-FITS-Header and OpenGL. Use the same "manual" method as you've just tried with PDL and see how it goes. I'm not sure about OpenGL with Cygwin, but the rest should build and install fine with perl Makefile.PL, make test and make install. If OpenGL won't build, just skip it for the moment, and we can come back to it later.

Cheers,
Rob

Replies are listed 'Best First'.
Re^10: PDL installation
by mili3431 (Novice) on Feb 04, 2010 at 04:15 UTC
    I followed what you said and manually installed the prerequisites. Astro and inline were installed, however OpenGL did not work. Then I tried to install PDL, it took a while and finished with this statement:

    found 611 functions saving... couldn't open /usr/lib/perl5/site_perl/5.10/i686-cygwin/PDL/Index.pod +at Doc/sca ntree.pl line 46. make: *** [doc_site_install] Error 13

    Is there a way to ckeck if PDL was installed successfully?

    Thanks,
      Looking at http://osdir.com/ml/lang.perl.quality-assurance/2008-11/msg00035.html, it seems you might have come up against a permissions issue. I don't know how that has impacted upon your PDL installation, nor do I know what to do about it. It's likely that you have a functional PDL, though there could be something missing. Start with perl -MPDL -le 'print $PDL::VERSION'
      If that prints out 2.4.6, things are looking promising. Then check to see that entering perldl puts you into the perldl shell (ie gives you a perldl> prompt). Others would be better able to advise on how to do more extensive testing. (I guess you could run the test scripts and check that they perform correctly.)

      If you want to do any graphics stuff with PDL, OpenGL seems to be the best way to go. You should seek help with that on the PDL mailing list as the main OpenGL developer is subscribed there. He's also one of the most active PDL developers ... and he uses Cygwin extensively as well !

      Cheers,
      Rob
        I got 2.4.6 for PDL version and I was able to use perldl shell. Thanks a lot for your help.

        Do you have any suggestion on how I can fix my CPAN, so that if I want to install other modules in future I can use the autoinstall and I don't have to do it manually?

        You have been very helpful. Thank you.