Dear MPB users:
Below are the installation instructions for the latest version
of MPB on Ubuntu 16.04. This includes the serial and parallel
version with OpenMPI. The parallel version requires that OpenMPI
and HDF5 libraries be built from source. SWIG does not support the
latest version of Guile which requires that an older
version (2.0.11) be used instead. The source files are placed in
an "install" folder in the user's home directory. All binaries
are installed in the standard system directories. The entire
installation takes less than an hour on an Intel Xeon 2.90 GHz
machine, mainly due to the suite of tests in "make check".
These instructions are also available as a bash
script.
Cordially,
Ardavan Oskooi
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> sudo apt-get update
> sudo apt-get -y dist-upgrade
> sudo apt-get -y install libblas-dev liblapack-dev
libgmp-dev libunistring-dev libmatheval-dev swig libgsl-dev
libatomic-ops-dev libgc-dev libffi-dev libltdl-dev autoconf
pkg-config libpng16-dev git
> export
LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib/openmpi"
> export LDFLAGS="-L/usr/local/lib -L/usr/local/lib/openmpi"
> export CPPFLAGS="-I/usr/local/include
-I/usr/local/include/openmpi"
> export GUILE_WARN_DEPRECATED="no"
> mkdir install
> cd ~/install
> git clone https://github.com/stevengj/harminv.git
> cd harminv/
> sh autogen.sh --with-pic
> make && sudo make install
> cd ~/install
> wget ftp://ftp.gnu.org/gnu/guile/guile-2.0.11.tar.gz
> tar xvzf guile-2.0.11.tar.gz
> cd guile-2.0.11/
> ./configure --with-pic
> make && make check && sudo make install
> cd ~/install
> git clone https://github.com/stevengj/libctl.git
> cd libctl/
> sh autogen.sh --with-pic
> make && sudo make install
> cd ~/install
> wget
https://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.8.tar.gz
> tar xvzf openmpi-1.8.8.tar.gz
> cd openmpi-1.8.8/
> ./configure --with-pic
> make && make check && sudo make install
> cd ~/install
> wget
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.14/src/hdf5-1.8.14.tar.gz
> tar xvzf hdf5-1.8.14.tar.gz
> cd hdf5-1.8.14/
> ./configure --with-pic --prefix=/usr/local CC=mpicc
--enable-parallel
> make && make check && sudo make install
> cd ~/install
> git clone https://github.com/stevengj/h5utils.git
> cd h5utils/
> sh autogen.sh CC=mpicc LIBS=-ldl
> make && sudo make install
> cd ~/install
> wget http://www.fftw.org/fftw-3.3.4.tar.gz
> ./configure --with-pic --enable-mpi
> make && make check && sudo make install
> cd ~/install
> git clone https://github.com/stevengj/mpb.git
> cd mpb/
> sh autogen.sh --with-pic CC=mpicc LIBS=-ldl
> make && make check && sudo make install
> make distclean
> sh autogen.sh --with-pic CC=mpicc LIBS=-ldl --with-mpi
> make && make check && sudo make install
> make distclean
> sh autogen.sh --with-pic CC=mpicc LIBS=-ldl
--with-inv-symmetry
> make && make check && sudo make install
> make distclean
> sh autogen.sh --with-pic CC=mpicc LIBS=-ldl
--with-inv-symmetry --with-mpi
> make && make check && sudo make install