Running Diffpack in Linux - Serial Applications

Setup

Example 1 (csh): add the following to ~/.cshrc

setenv MACHINE_TYPE linux-gcc-3.2.2
source /usr/local/NO/etc/setup/dpcshrc

Example 2 (bash): add the following to ~/.profile

export MACHINE_TYPE=linux-gcc-3.2.2
. /usr/local/NO/etc/setup/dpshrc

Notice that everything pertinent to Diffpack is located in /usr/local/NO.

Compiling and running

• Create a directory using Diffpack's capital-M Mkdir:

Mkdir <directory_name>

• Files Makefile, .cmake1, and .cmake2 will be created inside the directory.

• Put the pertinent C++ files in the directory.

• Run Diffpack's capital-M Make:

 Make <filename>

• An executable file named app will be created.

• To run, type:

./app