-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·46 lines (43 loc) · 1.21 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
#!/bin/bash
LB="\033[1;34m"
NC='\033[0m'
cd `dirname "$0"`
if [[ -z "$LC_ALL" ]]; then
export LC_ALL=C
fi
# install TORCS dependencies
printf "${LB}>> Begin installing dependencies\n${NC}"
sudo apt-get upgrade -y
sudo apt-get update -y
sudo apt-get install build-essential -y
sudo apt-get install xvfb -y
sudo apt-get install libxxf86vm-dev -y
sudo apt install libgl-dev -y
sudo apt install freeglut3-dev -y
sudo apt install libplib-dev -y
sudo apt install libvorbis-dev -y
sudo apt install libxi-dev -y
sudo apt install libxmu-dev -y
sudo apt install libopenal-dev -y
sudo apt install libalut-dev -y
sudo apt install libxrender-dev -y
sudo apt install libxrandr-dev -y
sudo apt install libpng-dev -y
if ! hash git 2>/dev/null; then sudo apt-get install git -y >/dev/null; fi
printf "${LB}>> All dependencies installed\n${NC}"
# installing TORCS
printf "${LB}>> Begin installing TORCS\n${NC}"
sudo apt-get build-dep torcs -y
sudo apt-get update -y
cd torcs-1.3.6
make
sudo make install
sudo make datainstall
cd ..
printf "${LB}>> TORCS installed\n${NC}"
# install py_TORCS
printf "${LB}>> Begin installing py_TORCS\n${NC}"
cd py_TORCS
python -m pip install -e . || python setup.py install
cd ..
printf "${LB}>> py_TORCS installed\n${NC}"