mlpack installation on Ubuntu 12.04

mlpack is a C++ machine learning library, which is developed by the fundamental algorithmic and statistical tools laboratory (FASTLab) at Georgia Tech. Machine learning methods implemented in mlpack are following:

mlpack requires

0. Prerequisities
0.1. BLAS

  1. sudo apt-get install libblas-dev

0.2. LAPACK
Armadillo requires LAPACK to be compiled with gfortran.
#Lapack with gfortran

  1. wget http://www.netlib.org/lapack/lapack-3.5.0.tgz
  2. tar xzf lapack-3.5.0.tgz
  3. cd lapack-3.5.0/
  4. cmake-gui .
  5. # set CMAKE_Fortran_COMPILER = /usr/bin/gfortran for Armadillo
  6. # set CMAKE_Fortran_FLAGS = -fPIC
  7. make
  8. sudo make install

0.3 Armadillo >= 3.6.0 (with LAPACK support)

  1. wget http://downloads.sourceforge.net/project/arma/armadillo-3.930.2.tar.gz
  2. tar xzf armadillo-3.930.2.tar.gz
  3. cd armadillo-3.930.2
  4. cmake-gui .
  5. make
  6. sudo make install

0.4 LibXML2 >= 2.6.0

  1. sudo apt-get -yV install libxml2-dev

1. MLpack

  1. sudo apt-get -yV install txt2man
  2. wget http://www.mlpack.org/files/mlpack-1.0.7.tar.gz
  3. tar xzf mlpack-1.0.7.tar.gz
  4. mkdir mlpack-1.0.7-build
  5. cd mlpack-1.0.7-build
  6. cmake-gui ../mlpack-1.0.7
  7. make
  8. sudo make install
  9. sudo ldconfig
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s