-
Notifications
You must be signed in to change notification settings - Fork 8
/
prereq_install.sh
executable file
·95 lines (74 loc) · 2.18 KB
/
prereq_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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# install pre-requisites. tested on ubuntu 16.04 (14.04 should mostly work except for installing ode part, which may
# require manual installation
echo "Install pre-requisites"
apt-get update
if [[ "$OSTYPE" == "linux-gnu" ]]; then
if [[ `lsb_release -rs` == "14.04" ]]; then
sudo apt-get install -y libav-tools
else
sudo apt-get install -y ffmpeg
fi
else
echo "OS version not tested yet"
fi
apt-get install -y\
python-setuptools \
libpq-dev \
libjpeg-dev \
curl \
cmake \
swig \
python-opengl \
libboost-all-dev \
libsdl2-dev \
wget \
unzip \
git \
xpra \
python3-dev \
libode-dev \
libopenmpi-dev
sudo apt-get install -y build-essential cmake pkg-config git ffmpeg
sudo apt-get install -y libeigen3-dev libassimp-dev libccd-dev libfcl-dev libboost-regex-dev libboost-system-dev
sudo apt-get install -y libopenscenegraph-dev
sudo apt-get install -y libbullet-dev
sudo apt-get install -y liburdfdom-dev
sudo apt-get install -y libnlopt-dev
sudo apt-get install -y libxi-dev libxmu-dev freeglut3-dev
sudo apt-get install -y libtinyxml2-dev
apt-get install -y swig
apt-get install -y swig python-pip python-qt4 python-qt4-dev python-qt4-gl
apt-get install -y python3-pip python3-pyqt4 python3-pyqt4.qtopengl
pip3 install numpy
pip3 install tensorflow
echo "Start Dart Installation"
# install dart
git clone https://github.com/dartsim/dart.git
cd dart
git checkout tags/v6.3.0
cp ../external/lcp.cpp dart/external/odelcpsolver/lcp.cpp
mkdir build && cd build
cmake ..
make -j4
sudo make install
cd ../../
echo "Start Pydart2 Installation"
# install pydart
git clone https://github.com/sehoonha/pydart2.git
cp external/pydart2_draw.cpp pydart2/pydart2/
cd pydart2
python3 setup.py build build_ext
sudo python3 setup.py develop
echo 'export PYTHONPATH='$PWD:'$PYTHONPATH' >> ~/.bashrc
echo "Start Baselines Installation"
cd ../baselines
sudo pip3 install -e .
echo "Start DartEnv Installation"
cd ../dart-env
sudo pip3 uninstall -y gym
sudo pip3 install -e .
sudo pip3 install mpi4py
sudo pip3 install matplotlib
cd ..
echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
echo "Installation Done"