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 | [reply] [d/l] [select] |
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?
| [reply] |
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 | [reply] [d/l] [select] |
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?
| [reply] |