Skip to content

Install process on Ubuntu18 VM

UCLGuichard edited this page Apr 8, 2019 · 3 revisions
sudo apt-get update

Git natively on my Ubuntu18 VM, version 2.17.1 gcc natively on my Ubuntu18 VM, version 7.3.0. Upgrading to version 8.

sudo apt-get install gcc-8

Update the alternatives to make gcc-7 and gcc-8 coexist:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8

Check it finds gcc-8:

gcc --version
gcc (Ubuntu 8.2.0-1ubuntu2~18.04) 8.2.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make natively on my Ubuntu18 VM, version 4.1. sudo apt-get cmake version 3.10.2 sudo apt-get install liblapack3 sudo apt-get install libboost-all-dev

sudo apt-get install gfortran installs version 7.3.0 sudo apt-get install gfortran-8 installs version 8.2.0 Alternatives: sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-7 70 sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-8 80 to get the lastest gfortran version. mkdir PEITS cd PEITS/ git clone -b maint https://bitbucket.org/petsc/petsc petsc Check openMPI is installed:

vagrant@vagrant:~/PEITS$ mpirun --version
mpirun (Open MPI) 2.1.1

Report bugs to http://www.open-mpi.org/community/help/

cd petsc

./configure --prefix=/home/vagrant/PEITS/petscBUILD --with-x=0 --with-debugging=0 -CFLAGS="-O3 -DNDEBUG -ffast-math" --with-parmetis=1 --download-parmetis=yes --with-hypre=1 --download-hypre=yes --with-superlu_dist=1 --download-superlu_dist=yes --with-mumps=1 --download-mumps=yes --with-ml=1 --download-ml=yes --with-metis=1 --download-metis=yes --download-scalapack=yes --download-mpich --download-fblaslapack --with-cxx-dialect=C++11

make all test make install

cd ..
wget http://www.cs.sandia.gov/~kddevin/Zoltan_Distributions/zoltan_distrib_v3.83.tar.gz
tar xf zoltan_distrib_v3.83.tar.gz --warning=no-unknown-keyword
../configure --prefix=/home/vagrant/PEITS/Zoltan_v3.83/build --with-parmetis --with-parmetis-incdir="/home/vagrant/PEITS/petscBUILD/include" --with-parmetis-libdir="/home/vagrant/PEITS/petscBUILD/lib"

make everything make install

cd ../..
git clone https://github.com/EIT-team/PEITS

Step 9. OK sh INSTALL ==> error:

--> libtoolize...
libtoolize:   error: One of these is required:
libtoolize:                 gm4 gnum4 m4
libtoolize:   error: Please install GNU M4, or 'export M4=/path/to/gnu/m4'.

sudo apt-get install m4 sh INSTALL ==> error

/home/vagrant/PEITS/PEITS/dune-common-2.3-svn/bin/../bin/dune-autogen: line 124: aclocal: command not found
--- Failed to build dune-peits ---

sudo apt-get install automake

Clone this wiki locally