Package esys :: Package lsm :: Package doc :: Module Installation
[hide private]
[frames] | no frames]

Module Installation

Package Dependencies

In order to build the ESyS-Particle software, the following packages are required:

Optional packages include:

Building the Source Package

ESyS-Particle uses the autotools (autoconf, automake and libtool) build system to compile source code. After the lsmearth-2.1.tar.gz source has been downloaded and unziped/untared, change into the ESyS-Particle top level source directory which contains the configure script. The configure shell script attempts to guess correct values for various system-dependent variables used during compilation. A typical invocation of the configure script on a system with LAM-MPI installed would be:

$ ./configure CC=mpicc CXX=mpic++ --prefix=/opt/pkgs/lsmearth-2.1

On an MPT system (Altix 3700, for example), the invocation of configure would be:

$ ./configure CC=gcc CXX=g++ --prefix=/opt/pkgs/lsmearth-2.1

In both these cases, the CC and CXX configure variables are used to set the C and C++ compilers, respectively. The --prefix=/opt/pkgs/lsmearth-2.1 option sets the root installation path, so that in these cases the ESyS-Particle executables, libraries, etc will be installed under /opt/pkgs/lsmearth-2.1/bin, /opt/pkgs/lsmearth-2.1/lib, etc. Running:

$ ./configure --help

will list the command line options (and brief descriptions) for the configure script.

Once the configure script has been run, and the various Makefile files have been generated, the binaries can be built by issuing the:

$ make

command. Parallel builds are supported, so on multiple (or hyper-threaded) CPU machines:

$ make -j N

will cause N files to compile simultaneously. Issuing the:

$ make install

command installs binary, data and python package and module files. The installation can be tested with:

$ make installcheck

which runs a series of unit-tests using the installed package binaries.

Environment Variables

Typically, there are three environment variables which need to be set before being able to run an ESyS-Particle python script: PATH, LD_LIBRARAY_PATH and PYTHONPATH. Assuming that the configure script was run with the --prefix=/opt/pkgs/lsmearth-2.1 option, these environment variables would be set as follows:

$ export PATH=/opt/pkgs/lsmearth-2.1/bin:$PATH
$ export LD_LIBRARAY_PATH=/opt/pkgs/lsmearth-2.1/lib:$LD_LIBRARY_PATH
$ export PYTHONPATH=/opt/pkgs/lsmearth-2.1/lib/python2.3/site-packages:$PYTHONPATH
Variables [hide private]
  __installDoc = '\nInstallation\n============\n\nPackage Depend...
  __doc__ = esys.lsm.doc.Util.setSectionDoc("InstallSection", __...
  __package__ = 'esys.lsm.doc'
Variables Details [hide private]

__installDoc

Value:
'''
Installation
============

Package Dependencies
--------------------
In order to build the %(pkgName)s software, the following packages
are required:
...

__doc__

Value:
esys.lsm.doc.Util.setSectionDoc("InstallSection", __installDoc)