-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
control-install.sh
executable file
·67 lines (49 loc) · 1.3 KB
/
control-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
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# скрипт устанавливает среду для последующей компиляции, берет исходники зависимостей из github, но не собирает
INSTALL_PATH=$PWD
git submodule init
git submodule update
cd ./source-server
./control-install.sh
cd $INSTALL_PATH
./tools/install-repo-libs.sh
# Get other dependencies
LIB_NAME[5]="libglib2.0-dev"
LIB_NAME[6]="cmake"
LIB_NAME[7]="libtool-bin"
LIB_NAME[8]="pkg-config"
LIB_NAME[9]="build-essential"
LIB_NAME[10]="autoconf"
LIB_NAME[11]="automake"
LIB_NAME[12]="curl"
LIB_NAME[13]="python"
# LIB_NAME[14]="npm"
LIB_OK="Status: install ok installed"
F_UL=0
### LIBS FROM APT ###
for i in "${LIB_NAME[@]}"; do
L1=`dpkg -s $i | grep 'install ok'`
echo CHECK $i .... $L1
if [ "$L1" != "$LIB_OK" ]; then
if [ $F_UL == 0 ]; then
sudo apt-get update
F_UL=1
fi
echo INSTALL $i
sudo apt-get install -y $i
fi
done
sudo apt-get install build-essential gdb
### RUST LANG ###
if [ "$1" = force ] || ! rustc -V ; then
echo "--- INSTALL RUST ---"
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
else
echo "--- UPDATE RUST ---"
rustup update stable
fi
whereis rustc
rustc -V
cargo -V
#./tools/install-oxigraph.sh