Installing reduction package
From DANSE
| Table of contents |
[edit]
THIS PAGE OUT OF DATE. CHECK PAGE AT LINK BELOW
ARCS software website (http://arcscluster.caltech.edu:5001/)
[edit]
Apply for an account on arcs.cacr.caltech.edu
- follow instructions on how to Getting an account on arcs.cacr.caltech.edu
[edit]
Install HDF support packages (jpeg,zlib)
for CYGWIN...
- repeat 1.2-1.6 for Cygwin (in Installing build procedure and framework)
- from "Libs", select: "jpeg" and "zlib"
- download and install packages
for MINGW...
- ---instructions needed here--- (contributions, anyone?)
for LINUX...
- most Linux distributions have 'jpeg' and 'zlib' installed, however if they aren't or a newer version is desired...
- 'jpeg' can be obtained at:
- 'zlib' can be obtained at:
- install 'jpeg' and 'zlib' from source, rpm, deb, or as your linux system requires...
- ---instructions need improvement--- (contributions, anyone?)
for MAC...
- some Mac distributions have 'jpeg', and 'zlib' installed, however if they aren't or a newer version is desired...
- 'jpeg' can be obtained at:
- http://www.ijg.org/files/jpegsrc.v6b.tar.gz
- http://homepages.cwi.nl/~jack/macsoftware.html
- http://fink.sourceforge.net/
- http://developer.apple.com/ [must register as an APPLE DEVELOPER]
- 'zlib' can be obtained at:
- http://www.gzip.org/zlib
- http://homepages.cwi.nl/~jack/macsoftware.html
- http://fink.sourceforge.net/
- http://developer.apple.com/ [must register as an APPLE DEVELOPER]
- install 'jpeg' and 'zlib' from source, dgm, hqx, or as your mac system requires...
- ---instructions need improvement--- (contributions, anyone?)
[edit]
Install HDF4 and HDF5
for CYGWIN...
- ---instructions needed here--- (contributions, anyone?)
for MINGW...
- ---instructions needed here--- (contributions, anyone?)
for LINUX...
- download hdf4 and hdf5 from http://hdf.ncsa.uiuc.edu/
- NOTE: there are some known build problems between gcc and hdf5. It is suggested that in addition to the most current version of hdf5, the user also download hdf5-1.4.5-post2 in case the current version fails to install correctly (1.4.5-post2 installs 'easily' with gcc).
- the next few steps assume the user has root access; if the user doesn't have root access, then the user must carefully read the README and INSTALL files included in both 'hdf4' and 'hdf5' distributions to see how to install to a directory under the user's home directory (i.e. --prefix=$TOOLS_DIR/hdf4 and --prefix=$TOOLS_DIR/hdf5)
- unpack 'hdf4' and 'hdf5'
- $ tar -xvzf HDF4*;
- $ tar -xvzf hdf5*; (select either the current hdf5 or hdf5-1.4.5-post2)
- change to hdf4 directory
- $ cd HDF4*;
- build hdf4
- $ ./configure
- $ make
- $ make install
- change to hdf5 directory
- $ cd ../hdf5*;
- build hdf5
- $ ./configure --enable-cxx
- $ make
- $ make install
- use vim or emacs to add/modify/uncomment appropriate lines in ~/.tools file [uncomment $HDF4_BINDIR, $HDF4_LIBDIR, ..., $HDF5_BINDIR, $HDF5_LIBDIR, ...], [uncomment and modify $HDF4_DIR and $HDF5_DIR to match your installation paths]
- $ vim ~/.tools
- ---instructions need improvement--- (contributions, anyone?)
for MAC...
- download hdf4 and hdf5 from http://hdf.ncsa.uiuc.edu/
- NOTE: there are some known build problems between gcc and hdf5. It is suggested that in addition to the most current version of hdf5, the user also download hdf5-1.4.5-post2 in case the current version fails to install correctly (1.4.5-post2 installs 'easily' with gcc).
- the next few steps assume the user has root access; if the user doesn't have root access, then the user must carefully read the README and INSTALL files included in both 'hdf4' and 'hdf5' distributions to see how to install to a directory under the user's home directory (i.e. --prefix=$TOOLS_DIR/hdf4 and --prefix=$TOOLS_DIR/hdf5)
- unpack 'hdf4' and 'hdf5'
- $ tar -xvzf HDF4*;
- $ tar -xvzf hdf5*; (select either the current hdf5 or hdf5-1.4.5-post2)
- change to hdf4 directory
- $ cd HDF4*;
- build hdf4
- $ ./configure
- $ make
- $ make install
- change to hdf5 directory
- $ cd ../hdf5*;
- build hdf5
- $ ./configure --enable-cxx
- $ make
- $ make install
- use vim or emacs to add/modify/uncomment appropriate lines in ~/.tools file [uncomment $HDF4_BINDIR, $HDF4_LIBDIR, ..., $HDF5_BINDIR, $HDF5_LIBDIR, ...], [uncomment and modify $HDF4_DIR and $HDF5_DIR to match your installation paths]
- $ vim ~/.tools
- ---instructions need improvement--- (contributions, anyone?)
[edit]
Install/Rebuild framework
if you haven't built the framework already...
- follow instructions on Installing build procedure and framework
if you have already built the framework, you'll probably want to rebuild it now...
- change to pythia directory
- $ cd $PYTHIA_DIR
- remove pythia build
- $ mm clean
- rebuild pythia package
- $ mm
[edit]
Install reduction support packages (fpset,nexus,...)
- change to development directory
- $ cd $DV_DIR
- create danse directory
- $ mkdir -p danse
- change to danse directory
- $ cd danse
- checkout 'packages' suite
- $ cvs -d username@arcs.cacr.caltech.edu:/home/arcs/cvs co packages
- change to array_kluge directory
- $ cd packages/array_kluge
- build array_kluge package
- $ mm
- change to fpset directory
- $ cd ../fpset
- build fpset package
- $ mm
- change to nexus directory
- $ cd ../nexus
- use vim or emacs to edit ~/.tools file so $NEXUS_INCDIR = ${DV_DIR}/danse/packages/nexus/napi
- $ vim ~/.tools [uncomment $NEXUS_INCDIR]
- build nexus package
- $ mm
- change to napi test directory
- $ cd tests/napi
- run testnx.py to check integration of HDF4, HDF5, and nexus
- $ python testnx.py 4
- $ python testnx.py 5
- NOTE: If these tests fail, the user may need to check the installation of the HDF4 and HDF5 packages
- Build the ARCS testing package
- $ cd $DV_DIR/danse/packages/ARCSTest
- $ mm
- Build stdVector-0.2:
- $ cd $DV_DIR/danse/packages/stdVector-0.2
- $ mm
- Test stdVector-0.2
- $ cd tests/libstdVector
- $ mm
- $ ./run_stdVectorTests
- Make sure you get something like ALL TESTS PASSED.
[edit]
Install reduction package
- change to reduction directory
- $ cd $DV_DIR/danse/packages/ins/reduction
- build reduction package
- $ mm
