Version 3 (modified by 15 years ago) (diff) | ,
---|
Installing Duchamp at ATNF
Considerations
We need to consider the following effects at ATNF:
- Many different platforms
- Different flavours of linux with their own /usr/local installs
- Need to have an easy-to-update installation procedure.
Installation procedure
The scripts used for the install are in the directory /nfs/atapplic/duchamp/scripts.
The directory /nfs/atapplic/duchamp is in fact a symbolic link that points to the most recent version of Duchamp: currently /nfs/atapplic/duchamp-1.1.8.
There are two scripts: make_atnf_install.sh and duchamp_wrapper.sh. The former handles the installation, while the latter acts as a wrapper to get the correct version and the libraries correct.
The basic functionality of make_atnf_install.sh
is as follows:
- Work out what platform we're on (via
uname
). Only SunOS and Linux are supported.
- Make the appropriate directory for the current version (if it doesn't already exist) -- this means /nfs/atapplic/duchamp-1.1.8 for example.
- Download the source code:
- If linux, we get it directly from the subversion repository
- If solaris, svn is not available, so we copy the release tarball from the web download directory
- Run configure with appropriate directories and compilers (we need to specify the compilers on solaris, so that we get v.3 of gcc etc)
- Compile and run the test script
- Make the documentation
- Copy the wrapper script to /usr/local/bin and make a symbolic link to it
- Copy the library and the include files to /usr/local
The wrapper script just gets LD_LIBRARY_PATH correct then passes all arguments to the actual Duchamp executable, using the symbolic link /nfs/atapplic/duchamp
When installing a new version, make sure to update the file /nfs/source/INSTALL.LOG, which is under RCS control:
cd /nfs/source; co -l INSTALL.LOG; vi INSTALL.LOG; ci -u INSTALL.LOG
Notes
- 2009/07/27: Install on ritchie seems to have not found PGPLOT. Need to chase up why. Other linux install (draco) worked fine.
Attachments (2)
-
make-atnf-install.sh (3.4 KB) - added by 13 years ago.
Installation script
-
duchamp-wrapper.sh (1.4 KB) - added by 13 years ago.
Wrapper script for execution
Download all attachments as: .zip