Required by Armadillo: sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install libarmadillo-dev
sudo apt-get install doxygen graphviz
git clone https://github.com/mlpack/mlpack.git
# checkout the latest branch
git checkout 4.2.0
or download the archive from Github repo
mkdir build && cd build
cmake -DDOWNLOAD_DEPENDENCIES=ON -DCMAKE_INSTALL_PREFIX=./installdir -DDEBUG=ON ..
make install