Installation

Compiling

To compile MALT, simply use :

If you are using Gentoo :

mkdir build
cd build
../configure --prefix=$HOME/usr-malt
make -j8
make install

Note that the configure script is just a wrapper with the configure classic semantic on top of cmake, so you can also call directly cmake:

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/usr-malt -DCMAKE_BUILD_TYPE=Release
make -j8
make install

Note about Intel Compiler

MALT is written in C++ so you might possibly encounterd some issue with you build it with GCC and profile applications built with Intel Compiler. In most cases it should work out of the box without any issues.

But, I got once an error report about that. In that case, try to compile MALT also with intel compiler instead if GCC to match the app :

# with the configure script
../configure CC=icc CXX=icpc
make

# with the cmake script directly
cmake -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc

Installation in non-standard directory

If you install MALT in a directory other than /usr and /usr/local, eg. in your home, you might be interested by setting some environment variables integrating it to your shell :

export PATH=${PREFIX}/bin:$PATH
export MANPATH=${PREFIX}/share/man:$MANPATH

LD_LIBRARY_PATH is not required as the malt command will use the full path to get access the internal .so file.

Installing via spack

If you are using Spack you can simply use it to build the dependencies and MALT :

./bin/spack install malt

Installing via Gentoo Overlay

On Gentoo you can also directly install MALT by using the given overleay :

sudo eselect repository add memtt git https://github.com/memtt/gentoo-memtt-overlay.git
sudo eselect repository enable memtt
sudo emerge -a malt

Building distribution packages

MALT provide the files necessary to produce the APT and RPM packages, you will find the procedure to use them in the advanced section.