-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·55 lines (42 loc) · 1.25 KB
/
install.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
base_dir=$(pwd)
echo "Installing all necessary dependencies (open install.sh for more detail)"
echo "Unzipping:\n\t $base_dir/lib/jpegsrc.v9e.tar.gz"
echo "*****"
tar -xzf "$base_dir/lib/libpng-1.6.37.tar.xz" -C "$base_dir/lib/"
echo "Installing libpng library"
echo "*****"
cd "$base_dir/lib/libpng-1.6.37"
./configure --prefix="$base_dir/lib/"
make test
make
make install
cd "$base_dir"
rm -rf "$base_dir/lib/libpng-1.6.37"
tar -xzf "$base_dir/lib/jpegsrc.v9e.tar.gz" -C "$base_dir/lib/"
echo "Installing jpeg-9e library"
echo "*****"
cd "$base_dir/lib/jpeg-9e"
./configure --prefix="$base_dir/lib/"
make test
make
make install
cd "$base_dir"
rm -rf "$base_dir/lib/jpeg-9e"
echo "Unzipping:\n\t $base_dir/lib/armadillo-11.0.0.tar.xz"
echo "*****"
tar -xzf "$base_dir/lib/armadillo-11.0.0.tar.xz" -C "$base_dir/lib/"
echo "\n\nInstalling armadillo library"
echo "*****"
cd "$base_dir/lib/armadillo-11.0.0"
cmake . -DCMAKE_INSTALL_PREFIX:PATH="$base_dir/lib/"
make install
cd "$base_dir"
rm -rf "$base_dir/lib/armadillo-11.0.0"
echo "\n\nUnzipping:\n\t $base_dir/lib/boost_1_77_0.zip "
echo "*****"
cd "$base_dir/lib"
echo "Please wait this will take a few minutes"
unzip -q -n boost_1_77_0.zip
echo "Unzip complete"
cd "$base_dir"
echo "\n\n***Done installing***"