-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_dep.sh
executable file
·34 lines (30 loc) · 1.15 KB
/
install_dep.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
#!/bin/sh
set -ex
# check that all the dependecies are installed
if ! which npm > /dev/null; then
echo -e "npm not found, install it before continuing. If you are using ubuntu should be: sudo apt-get install npm"
exit
fi
if ! which python3 > /dev/null; then
echo -e "python3 not found, install it before continuing. If you are using ubuntu should be: sudo apt-get install python3"
exit
fi
if ! which pip3 > /dev/null; then
echo -e "pip3 not found, install it before continuing. If you are using ubuntu should be: sudo apt-get install pip3"
exit
fi
if ! which node > /dev/null; then
echo -e "nodejs not found, install it before continuing. If you are using ubuntu should be: sudo apt-get install nodejs"
exit
fi
if ! which ffmpeg > /dev/null; then
echo -e "ffmpeg not found, install it before continuing. If you are using ubuntu should be: sudo apt-get install ffmpeg"
exit
fi
# dependencies for npm
echo 'Installing dependencies for npm'
npm install && cd server && npm install && cd ../client && npm install && cd ../
# dependencies for python
echo 'Installing dependencies for python'
pip3 install numpy opencv-python
echo 'Done!'