Hi, Sorry for the delay, today was the first free day I had to review the PDL Fedora and CPAN installation procedures to update them as I promised.
I hope you guys think this was an ok idea, I felt that when a user selects Latest Version of PDL or Customized Installation w/ Fedora that one should use rpm packages for everything except the final PDL installation with CPAN, makes it simpler and much easier than mixing rpm installs with cpan installs. So I changed all the CPAN install lines with the equivalent rpm packages except of course the final PDL install with CPAN. I've also added the HDF4 support via hdf-devel but there is a small issue with that as it still won't find the libdf.a lib during CPAN install of PDL because HDF_LIBS doesn't include the directory path /usr/lib64/hdf on 64-bit computers. Someone doing a manual install of the tarball can edit perldl.conf first and set HDF_LIBS before make making but with cpan PDL you don't have a chance to do that. I posted an issue on RT to add this path to @HDF_lib_locations in IO/HDF/Makefile.PL. Some other notes: - I don't believe Test::More is necessary? If there was a reason then replace with rpm perl-Test-Simple (which is for Test::More) - gcc-gfortran gives you f95 not f77, compat-gcc-34-g77 gives f77 - During the CPAN install you get this message below right in the beginning. This might be pointless because anyone upgrading is going to get this and is there any way around getting this warning? ****** WARNING ****** PDL version 2.4.7 was detected in your @INC PDL may not build/test correctly with another PDL in @INC! ---------------------------------------------------------- The following updated list tested on Fedora 13 and 14: 1) Easiest possible install w/ Fedora: yum install perl-PDL perl-PDL-Graphics-PLplot plplot-perl 2) Latest version of PDL or Customized Installation w/ Fedora: REQUIRED: Build Environment yum install gcc RECOMMENDED: 3D Graphics yum install libXi-devel libXmu-devel freeglut-devel perl-OpenGL RECOMMENDED: PLplot Library yum install plplot-devel RECOMMENDED: Improved PDL Shell yum install perl-Devel-REPL perl-Term-Readline-Gnu RECOMMENDED: Proj4 Library yum install proj-devel proj-nad OPTIONAL: Minuit and Slatec Libraries (you must disable SELinux) yum install compat-gcc-34-g77 perl-ExtUtils-F77 OPTIONAL: NetPBM Image Utilities yum install netpbm-progs OPTIONAL: GD Image Library yum install gd-devel OPTIONAL: FFTW Library yum install fftw2-devel OPTIONAL: HDF4 Library yum install hdf-devel Now install CPAN and then PDL yum install perl-CPAN cpan PDL 3) Latest version of PDL w/ CPAN cpan PDL ---------------------------------------------- For PGPLOT support (do before PDL install): REQUIRED: Build Environment (C and Fortran-77 compilers) yum install gcc compat-gcc-34-g77 REQUIRED: PGPLOT X-Window Device Drivers yum install libX11-devel Installation: 1. Download and unpack PGPLOT source from ftp://astro.caltech.edu/pub/pgplot/pgplot5.2.tar.gz (into for example $HOME/downloads/pgplot) 2. Create target directory (e.g. $HOME/soft/pgplot) mkdir -p $HOME/soft/pgplot cp $HOME/downloads/pgplot/drivers.list $HOME/soft/pgplot/ cd $HOME/soft/pgplot 3. Edit drivers.list and uncomment /XWINDOW and /XSERVE lines 4. From within target directory, create makefile by running the following command: $HOME/downloads/pgplot/makemake $HOME/pgplot linux g77_gcc 5. Then make: make This will create libpgplot.a and the necessary X-Window files. 6. Now make the C binding: make cpg 7. Permanently set the environment variable for PGPLOT_DIR in your rc or profile file: export PGPLOT_DIR=$HOME/soft/pgplot 8. With environment variable set, install the Perl PGPLOT binding: cpan PGPLOT 9. Finally, install PDL: cpan PDL -------------------------------------------------- hope I didn't make any typos, looks ok. best, leandro
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
