On Sat, Jul 3, 2010 at 9:01 AM, Barry Hall <[email protected]> wrote: > Trying to install PDL using CPAN -- newbie not sure where to start here.
I will write up my experience, but until then, here is what I suggest -- 0. I prefer to install against my own install of Perl. Perl installs cleanly, clearly, and without a single hassle on a Mac. All one hundred and bazillion thousand tests of it pass cleanly. It is a heady feeling to read the summary that 100% of 1,85,000 (or whatever large number) tests passed. That is what I would recommend. If you do, Perl will get installed in /usr/local 0.1. Even if you prefer to not install your own Perl, you will likely have to install some dependencies yourself, in which case, the stuff you install will go under /usr/local 1. Forget CPAN, when it comes to PDL. Instead, download the source, and start from there. Assume, the PDL source is in ~/src/PDL-2.4.6. 2. cd into PDL src and open up perldl.conf in a text editor. Set slatec, GSL, PLplot, PGPLOT and other exotic stuff that you may not need to 0 (zero). Remember, undef means PDL will still try to build if it can (let PDL decide), 1 means PDL will be forced to build it, and 0 means PDL will ignore it. Start with 0. 3. type the following in your PDL src file ~/src/PDL-2.4.6 % perl Makefile.PL 4. If you are lucky, it will configure without any errors. In which case, type the following ~/src/PDL-2.4.6 % make && sudo make install and start using PDL once it is installed. 5. If you are unlucky in #3 above, and encounter errors, note them all down. Most will be easily fixable, because they will be because of old or missing libraries. Find the libraries and install them (one by one). After each install of a library, repeat step #3 again. Remember, all the stuff you install will go to /usr/local I keep a record of everything I have installed, including the configure options I used, and any relevant output of the make and make install commands. 80%-90% of PDL is very easy to install. The remainder is a pain in the ass, but it is doable. All depends on how badly you want it all. Once you have installed PDL, read the chapter on Threading. Be amazed, and evangelize PDL's use to others. > I've just accepted whatever else CPAN wanted to install. > Need someone to point me in the right direction. > Used to using PPM on windows based machine. > Never had this number of errors trying install any package. > Don't know where to start. > > > > cpan> install PDL > > > I get a lot of these: > > -- NOT OK > Running make test > Can't test without successful make > Running make install > make had returned bad status, install seems impossible > > > probable cause? > > Also had a couple of these: > > > Can't locate ExtUtils/F77.pm in @INC (@INC contains: > /Library/Perl/Updates/5.8.8 > /System/Library/Perl/5.8.8/darwin-thread-multi-2level > /System/Library/Perl/5.8.8 > /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 > /Library/Perl > /Network/Library/Perl/5.8.8/darwin-thread-multi-2level > /Network/Library/Perl/5.8.8 /Network/Library/Perl > /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level > /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 > /Users/barryhall/.cpan/build/PDL-2.4.6 > /Users/barryhall/.cpan/build/PDL-2.4.6/Lib .) at (eval 269) line 2. > BEGIN failed--compilation aborted at (eval 269) line 2. > > ExtUtils::F77 module not found. Ought not build PDL::Slatec > > > > _______________________________________________ > Perldl mailing list > [email protected] > http://mailman.jach.hawaii.edu/mailman/listinfo/perldl > -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
