-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_ubuntu22.sh
73 lines (64 loc) · 1.21 KB
/
install_ubuntu22.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
apt-get install unzip
apt-get install tar
# Unzip the other libraries and remove the zip files
unzip AdaptiveCpp-develop.zip
tar -xf armadillo-12.6.4.tar.xz
tar -xf gsl-2.7.1.tar.gz
tar -xf nlopt-2.7.1.tar.gz
# Install system dependencies
apt-get update
apt-get install -y \
build-essential \
cmake \
xz-utils \
zlib1g-dev \
clang-tools \
glpk-utils \
libglpk-dev \
glpk-doc \
libblas-dev \
liblapack-dev \
libnlopt-dev \
libopenblas-dev \
libopenmpi-dev \
libhdf5-dev \
libopenblas-dev \
libomp-dev \
liblapack-dev \
libarpack2-dev \
libboost-all-dev \
libclang-dev \
libsuperlu-dev \
python3 \
python3-pip
# Install AdaptiveCpp
cd AdaptiveCpp-develop
mkdir build
cd build
cmake ..
make install
cd ../..
# Install Armadillo
cd armadillo-12.6.4
mkdir build
cd build
cmake ..
make install
cd ../..
# Install GSL
cd gsl-2.7.1
./configure
make
make install
cd ..
# Install NLopt
cd nlopt-2.7.1
mkdir build
cd build
cmake ..
make
make install
cd ../..
# Add support for HDF5 in Armadillo
find /usr -type f -wholename '*/armadillo_bits/config.hpp' -exec sed -i 's/\s*\/\/\s*#define ARMA_USE_HDF5/#define ARMA_USE_HDF5/g' {} \;