Skip to content

2. Installation

bjks edited this page May 29, 2026 · 4 revisions

To compile RealTrace, two additional packages are needed.

The following two libraries are needed:

Make sure the correct paths to the two libraries are set in the Makefile. Currently, both are assumed to be located in the home directory. Then, compile with:

cd src; make local

Compile on an HPC using modules

If RealTrace is compiled on an HPC, one may be able to use the available modules.

1. Installation of nlopt

This will install nlopt in the home directory with static linking. You can change that via DCMAKE_INSTALL_PREFIX, but make sure to adjust the makefile accordingly!

ml purge
ml GCC/8.3.0
ml Eigen/3.3.7
ml CMake/3.15.3-GCCcore-8.3.0
wget https://github.com/stevengj/nlopt/archive/v2.7.1.tar.gz
tar -xf v2.7.1.tar.gz 
cd nlopt-2.7.1/
cmake -DCMAKE_INSTALL_PREFIX=~/nlopt -DBUILD_SHARED_LIBS=OFF .
make
make install

2. Compile

  • Clone this repository and navigate to the src directory within the repository
  • Run ml GCCcore/13.3.0 ; ml Eigen/3.4.0-GCCcore-13.3.0 ; followed by make. Note that the modules remain loaded after compilation.

Clone this wiki locally