halligalli has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am trying to install the PDL module and several applications (PDL::NiceSlice, PDL::Char)for Perl. The problem is that I donīt have admin (root) rights, so its not possible to install it automatically (even with setting a different installation-path)...I set for several other moduls a lib-path and put the specific files manually in the folder but for PDL it doesnt work...too many other files needed (missing xxx.pm, "badsupport.p": During a perl Makefile.PL, the file Basic/Core/badsupport.p is created...and so on). Is there another way to install PDL and the additional 1000 needed files on an easy way? (Using SunOS 5.10 and Perl 5.8) Thanks for help

Replies are listed 'Best First'.
Re: PDL installation problem
by syphilis (Archbishop) on Jun 22, 2011 at 23:30 UTC
    If you can get CPAN.pm configured appropriately, that would be the simplest way to install PDL. Otherwise, you could do as I do on Cygwin:

    There are very few dependencies for PDL. The only listed ones that come to mind are Astro::FITS::Header, Convert::UU and Inline, and you might not even need them - at the expense of missing out on some functionality. Those modules should, however, install without any trouble, so best to install them (along with the optional ExtUtils::F77 if you have a fortran compiler).

    To build and install your modules, first decide upon a directory into which you can install them - let's call it /home/me/my_modules.
    Set the PERL5LIB environment variable to /home/me/my_modules/lib/perl5
    Then download the module you want to build, extract it to some location, cd to the module's source top level directory and run, in succession:
    perl Makefile.PL INSTALL_BASE=/home/me/my_modules
    make test
    make install

    Do that for Astro::FITS::Header, Convert::UU, Inline, (optionally ExtUtils::F77) and finally PDL itself.

    The two packages you specifically mentioned (PDL::NiceSlice and PDL::Char) come as part of PDL.

    Cheers,
    Rob
      Hi, thanks for the message. I tried it but without success. I set the PERL5LIB variable, downloaded the PDL modul but I dont find the MAKEFILE.pl. There are some subfolders (Basic,Demos etc containig the MAKEFILE.pl ) but if I run it there its the same problem..."Unable to find PDL's configuration info " cant locate config.pm..... Any idea where I made the mistake?
        downloaded the PDL modul but I dont find the MAKEFILE.pl.

        It's in the top level folder - ie in the same directory that contains the Basic and Demos folders (amongst other stuff).
        You need to cd to that "top level folder" and run
        perl Makefile.PL INSTALL_BASE=/home/me/my_modules
        (replacing "/home/me/my_modules" with whatever location you've selected.)

        It's the same procedure for other modules - cd to the top level folder. Maybe you should try the pre-requisite modules first .... they're much smaller and simpler, and will give you the idea of what's supposed to happen. (Also, they're supposed to be installed *before* building PDL.)

        Cheers,
        Rob
Re: PDL installation problem
by wind (Priest) on Jun 22, 2011 at 19:36 UTC
      Hi, thanks for the message. I tried it but without success. I set the PERL5LIB variable, downloaded the PDL modul but I dont find the MAKEFILE.pl. There are some subfolders (Basic,Demos etc containig the MAKEFILE.pl ) but if I run it there its the same problem..."Unable to find PDL's configuration info " cant locate config.pm..... Any idea where I made the mistake?