Version 5 (modified by 12 years ago) ( diff ) | ,
---|
Installing Other Packages
PGPlot and OpenDX are plotting and visualization packages that get used in a few areas of the code. It's entirely possible that some users will never need their functionality, but they are included here for completeness anyway. Both are compiled using the GCC suite.
Note that PGPlot and OpenDX both make use of the X11 libraries. If you are not using Red Hat Enterprise Linux 4, you may find that your X11 libraries are in different locations, and you will have to modify these scripts accordingly.
Downloading and Installing PGPlot
wget ftp://ftp.astro.caltech.edu/pub/pgplot/pgplot5.2.tar.gz tar -xzvf pgplot5.2.tar.gz chmod -R a+rX pgplot # As root: mkdir /usr/lo cal/pgplot cd /usr/local/pgplot cp $ \sim$ /pgplot/drivers.list . # EDIT drivers.list to include the drivers: PS, VPS, CPS, & VCPS $ \sim$ /pgplot/makemake $ \sim$ /pgplot linux g77_gcc #Sidenote: If your system uses the newer gfortran instead of g77, edit the Makefile to reflect this. #Also: if necessary, the location of 64-bit X11 libraries on x64 systems can be set via LIBS=-L/usr/X11R6/lib64 -lX11 MOTIF_LIBS=-lXm -lXt -L/usr/X11R6/lib64 -lX11 ATHENA_LIBS=-lXaw -lXt -lXmu -lXext -L/usr/X11R6/lib64 -lX11 TK_LIBS=-L/usr/lib -ltk -ltcl -L/usr/X11R6/lib64 -lX11 -ldl # Now you can proceed to make the library make make clean
Downloading and Installing OpenDX
wget http://opendx.npaci.edu/source/dx-4.4.0.tar.gz tar -xzvf dx-4.4.0.tar.gz export CPPFLAGS=-Ihomedir /hdf/include/ export LDFLAGS=-L/usr/local/hdf/lib/ cd dx-4.4.0 ./configure -prefix=/usr/local -with-hdf \ -x-includes=/usr/local/hdf/include/:/usr/X11R6/include \ -x-libraries=/usr/local/hdf/lib/:/usr/X11R6/lib64 -libdir=/usr/lib64 make # As root: make install
Downloading and Installing FFTW
# fftw-2.1.5.tar.gz is mpi compatable although fftw-3.1.2.tar.gz is also available wget ftp://ftp.fftw.org/pub/fftw/fftw-2.1.5.tar.gz tar -xzvf fftw-2.1.5.tar.gz cd fftw-2.1.5 export FC=ifort;export F77=ifort;export F9X=ifort export CXX=icpc;export CXXCPP="icpc -E" export CC=icc;export CPP="icc -E" ./configure --prefix=/usr/local/ make install cp fortran/fftw_f77.i /usr/local/include # To test the installation # cd fortran # ifort f77_test.F -I/usr/local/include -L/usr/local/lib -lfftw -lm -o f77_test.out # ./f77_test.out # If you don't have root access and want to install the library in ~/local/fftw # then replace '/usr/local' with '~/local/fftw'
Note:
See TracWiki
for help on using the wiki.