in reply to PDL installation problem

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

Replies are listed 'Best First'.
Re^2: PDL installation problem
by halligalli (Novice) on Jun 23, 2011 at 14:17 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?
      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
        thanks rob, tried it again and PDL needs Astro::FITS::Header started with Astro::FITS::Header
        export PERL5LIB=/home/my_fodler/lib 1.: perl Build.PL INSTALL_BASE=/home/my_folder/lib 2.: ./Build -> OK ./Build test -> OK ./Build install -> Warning: You do not have permissions to install + into /usr/local/lib/perl5/site_perl/5.8.8 at /usr/local/lib/perl5/5. +8.8/ExtUtils/Install.pm line 114. mkdir /usr/local/lib/perl5/site_perl/5.8.8/Astro: Permission denied at + /usr/local/lib/perl5/5.8.8/ExtUtils/Install.pm line 176
        I set the path but he wants to install again on usr/.... ??????