Build GOTCHA¶
This section describes how to build GOTCHA, and what configure time options are available.
There are two build options:
build GOTCHA with Spack, and
build GOTCHA with cmake
Build GOTCHA with Spack¶
One may install GOTCHA with Spack. If you already have Spack, make sure you have the latest release. If you use a clone of the Spack develop branch, be sure to pull the latest changes.
Install Spack¶
$ git clone https://github.com/spack/spack
$ # create a packages.yaml specific to your machine
$ . spack/share/spack/setup-env.sh
Use Spack’s shell support to add Spack to your PATH
and enable use of the
spack
command.
Build and Install GOTCHA¶
$ spack install gotcha
$ spack load gotcha
If the most recent changes on the development branch (‘dev’) of GOTCHA are
desired, then do spack install gotcha@develop
.
Attention
The initial install could take a while as Spack will install build
dependencies (autoconf, automake, m4, libtool, and pkg-config) as well as
any dependencies of dependencies (cmake, perl, etc.) if you don’t already
have these dependencies installed through Spack or haven’t told Spack where
they are locally installed on your system (i.e., through a custom
packages.yaml).
Run spack spec -I gotcha
before installing to see what Spack is going
to do.
Build GOTCHA with CMake¶
Download the latest GOTCHA release from the Releases page or clone the develop branch (‘develop’) from the GOTCHA repository https://github.com/LLNL/GOTCHA.
cmake . -B build -DCMAKE_INSTALL_PREFIX=<where you want to install GOTCHA>
cmake --build build
cmake --install build