-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathinstall-dependencies.sh
More file actions
executable file
·44 lines (38 loc) · 1.17 KB
/
install-dependencies.sh
File metadata and controls
executable file
·44 lines (38 loc) · 1.17 KB
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
#!/bin/bash
echo "############################################"
echo "# #"
echo "# Installing Rsyn Library Dependencies #"
echo "# #"
echo "############################################"
declare -a libs=(
"libboost-all-dev"
"flex"
"bison"
"qtbase5-dev"
"libgl1-mesa-dev"
"libglu1-mesa-dev"
"freeglut3-dev"
"libglew-dev"
"libpng16-dev"
"cmake"
)
if [[ `lsb_release -rs` == "18.04" ]] # replace 8.04 by the number of release you want
then
echo "Updated libpng16-dev to libpng-dev in Ubuntu 18.04"
libs[-1]="libpng-dev"
fi
echo "You are required to have an administrative account to install UPlace library dependencies!"
for i in "${libs[@]}"
do
sudo apt install -y $i
# Install only dependencies that were not yet installed
# error while searching if package coinor-* is installed
#status=$(dpkg -s $i | grep Status)
#if [ "$status" != "Status: install ok installed" ]; then
# instMsg="****** Installing "
# instMsg+=$i
# instMsg+=" ******"
# echo $instMsg
# sudo apt install -y $i
#fi;
done