Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Configuration, Compilation, and Installation

We assume you have already downloaded and unpacked APPSPACK; if not, see Downloads.

## Step 1: Configuring APPSPACK

Before you can compile APPSPACK, you must run configure. As much as possible, configure will automatically detect the appropriate settings for your system. However, there are options that allow you to tweak the settings to your situation. In particular, you must use configure options to specify that the MPI version of APPSPACK should be built.

The configuration should be run from the top-level APPSPACK source directory. Here are some common examples of using configure.

- Configure to build the serial version of APPSPACK.

      configure

- Configure to build both the serial and MPI versions of APPSPACK.

      configure --with-mpi-compilers

  This version uses the MPI compilers (mpicxx or mpiCC, mpicc, and mpif77).

If you do not like the choices that configure makes, you may overide them by using the Configure Options.

## Step 2: Compiling APPSPACK

Once you have successfully configured APPSPACK, you may use the following commands to build the libraries and executables, from the top-level APPSPACK source directory.

- To compile APPSPACK:

      make

Depending on the options specified during configure, the compilation creates the following libraries and executables.

- `src/appspack_serial`
- `src/appspack_mpi`
- `src/libappspack`.a
- `examples/example1`
- `examples/example2`
- `examples/example3`

## Step 3: Installing APPSPACK (optional)

Once you have successfully compiled APPSPACK, you may use the following commands to install the executables, libraries, and header files.

- To install APPSPACK:

      make install

The following files will be installed in the following locations. The locations may be overridden by specifying the appropriate configure options.

- Header files - `/usr/local/include`
- Executables (`appspack_serial` and `appspack_mpi`) - `/usr/local/bin`
- Library (`libappspack.a`) - `/usr/local/lib`

## Step 4: Using APPSPACK

Now you are reading to use APPSPACK; see Using the APPSPACK Executables.

© Sandia Corporation | Site Contact | Privacy and Security

Generated on Wed Dec 14 18:41:05 2005 for APPSPACK 4.0.2 by 1.3.8 written by Dimitri van Heesch, © 1997-2002