User:Lambd
From pdl
This is Derek Lamb. My SF username is lambd. Email me at: username at users dot sourceforge dot net. Or, if you have a Sourceforge account and are already logged in, click on the "Email this user" link in the "toolbox" on the left.
Installing PDL manually on a fresh Mac OS X 10.6.3
- install XCode from Mac OS X install DVD
- do Apple Software Update to upgrade to 10.6.4 & upgrade XCode, etc.
- install MacPorts
- sudo port install plplot
- sudo port install pgplot
- sudo port install gsl
- sudo port install fftw
- sudo port install proj
- sudo port install git-core
- sudo port install emacs-app
- sudo port install netpbm
- sudo port install p5-extutils-f77 (for some reason I couldn't get this to work from CPAN)
- in sudo CPAN:
- install Bundle::CPAN
- install Astro::FITS::Header
- install Convert::UU
- install OpenGL
- install Inline (ignore the warning about not finding the C compiler)
Installing PDL manually on a fresh Ubuntu 9.10 Karmic installation
I created this instruction list mostly for my own benefit. My goals were:
- Get as many pre-compiled PDL dependencies as possible
- Build every optional PDL module that is in the standard distribution. Since I create PDLs online docs from my build on this machine, and I want the online docs to be as complete as possible.
- Use the latest git development snapshot, so I can easily build the docs between releases.
The steps necessary to do this from a completely fresh Ubuntu 9.10 Karmic Koala installation are:
- Use the package manager to find all upgrades since 9.10 was released.
- Use the package manager to install the following packages (and all of their dependencies):
- libplplot-dev (for PDL::Graphics::PLplot)
- plplot9-driver-gd
- plplot9-driver-xwin
- plplot9-driver-cairo
- plplot-doc
- pgplot5 (for PDL::Graphics::PGPLOT)
- libpgplot-perl (maybe?) or install from CPAN
- freeglut3-dev (for PDL::Graphics::TriD)
- libxmu-dev
- libxi-dev
- git-core (to pull latest git development snapshot)
- libgsl0-dev (for the PDL::GSL and PDL::GSLSF family of modules)
- gfortran
- libpng-dev
- emacs (really--ubuntu doesn't come with emacs)
- libhdf4g-dev (for PDL::IO::HDF)
- libgd2-xpm-dev (for PDL::IO::GD)
- fftw-dev (for PDL::FFTW)
- libproj-dev (for PDL::Transform::Proj4)
- run cpan from the shell
- Configure cpan
- install the following CPAN modules
- install Bundle::CPAN
- install Astro::FITS::Header
- install PGPLOT (for PDL::Graphics::PGPLOT)
- install Inline (yes, install Inline::C)
- install OpenGL (for PDL::Graphics::TriD)
- exit cpan
- mkdir ~/Build; cd ~/Build; (create a build directory and go to it)
- git clone ssh://USERNAME@pdl.git.sourceforge.net/gitroot/pdl/pdl PDL (see PDL::FAQ for alternate instructions if you don't have developer access to the PDL git repository at Sourceforge)
- cd PDL
- cp perldl.conf ~/.perldl.conf
- in ~/.perldl.conf, set hdf_inc=>['/usr/include/hdf']
- perl Makefile.PL; make; make test; make install;
