Changes
Page history
Update build_linux
authored
Apr 26, 2022
by
Adrien Crovato
Hide whitespace changes
Inline
Side-by-side
build_linux.md
View page @
1d149eb5
...
@@ -4,42 +4,32 @@ Note that these build instructions are using the GNU compilers but Intel's compi
...
@@ -4,42 +4,32 @@ Note that these build instructions are using the GNU compilers but Intel's compi
**Required packages**
**Required packages**
```
bash
```
bash
# Common
# Common
sudo
apt
-get
update
sudo
apt update
sudo
apt
-get
install
git
sudo
apt
install
git
sudo
apt
-get
install
git-lfs
sudo
apt
install
git-lfs
sudo
apt
-get
install
build-essential
sudo
apt
install
build-essential
sudo
apt
-get
install
cmake
sudo
apt
install
cmake
sudo
apt
-get
install
swig
sudo
apt
install
swig
sudo
apt
-get
install
libeigen3-dev
sudo
apt
install
libeigen3-dev
sudo
apt
-get
install
gmsh
sudo
apt
install
gmsh
# Python 3
# Python 3
sudo
apt-get
install
python3-dev
sudo
apt
install
python3-dev
sudo
apt-get
install
python3-mpi4py python3-numpy python3-scipy python3-matplotlib
sudo
apt
install
python3-mpi4py python3-numpy python3-scipy python3-matplotlib
sudo
apt-get
install
libvtk7-dev python3-vtk7 python3-pyqt5
# Threading Building Blocks (TBB)
```
sudo
apt
install
libtbb2-dev
```
bash
# Intel Math Kernel Libraries (MKL) and Threading Building Blocks (TBB)...
cd
/tmp
sudo
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sudo
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sudo rm
GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sudo
wget https://apt.repos.intel.com/setup/intelproducts.list
-O
/etc/apt/sources.list.d/intelproducts.list
sudo
sh
-c
'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
sudo
sh
-c
'echo deb https://apt.repos.intel.com/tbb all main > /etc/apt/sources.list.d/intel-tbb.list'
sudo
apt-get update
sudo
apt-get
install
intel-mkl-64bit-2019.2-057
sudo
apt-get
install
intel-tbb-64bit-2019.2-057
echo
"source /opt/intel/mkl/bin/mklvars.sh intel64"
>>
~/.bashrc
echo
"source /opt/intel/tbb/bin/tbbvars.sh intel64"
>>
~/.bashrc
# ... or Openblas and default TBB
sudo
apt-get
install
libopenblas-dev
sudo
apt-get
install
libtbb-dev
```
```
**Optional packages**
**Optional packages**
```
bash
```
bash
sudo
apt-get
install
libmumps-seq-dev
# MKL
sudo
apt-get
install
doxygen
sudo
apt
install
libmkl-dev
sudo
apt-get
install
graphviz
echo
"export INCLUDE=
${
INCLUDE
}
:/usr/include/mkl"
>>
~/.bashrc
# MUMPS
sudo
apt
install
libmumps-seq-dev
# VTK
sudo
apt
install
libvtk7-dev python3-vtk7 python3-pyqt5
# Documentation
sudo
apt
install
doxygen
sudo
apt
install
graphviz
```
```
**Build**
**Build**
```
bash
```
bash
...
...
...
...