-
Notifications
You must be signed in to change notification settings - Fork 207
/
install_noGUI.sh
executable file
·61 lines (47 loc) · 1.45 KB
/
install_noGUI.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
#!/bin/bash
#
# Run this file from the project root to install all required libraries:
# * Compile ALE under ../libraries/ale
# * Compile cuda-convnet2 under ../libraries/cuda-convnet2
#
# ---
# ALE
# ---
# Store current directory name and go in ALE directory
cwd=$(pwd)
cd ./libraries/ale
# Prepare Makefiles based on OS, choose makefile with no SDL(no GUI)
if [[ "$OSTYPE" == "linux-gnu" ]]; then
cp makefile_noGUI.unix makefile
elif [[ "$OSTYPE" == "darwin"* ]]; then
cp makefile_noGUI.mac makefile
elif [[ "$OSTYPE" == "cygwin" ]]; then
echo "WARNING: Not tested under cygwin"
cp makefile_noGUI.unix makefile
elif [[ "$OSTYPE" == "win32" ]]; then
echo "Windows is not supported. Terminating."
exit
elif [[ "$OSTYPE" == "freebsd"* ]]; then
echo "WARNING: Not tested under FreeBSD"
cp makefile_noGUI.unix makefile
else
echo "Unknown OS. Terminating."
exit
fi
# Compile ALE
make
# Go back to the main directory
cd "$cwd"
# Test ALE
./libraries/ale/ale -help
# -------------
# cuda-convnet2
# -------------
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/opencv/2.4.5/lib64:$HOME/libjpeg/lib:$HOME/cuda-convnet2/util:$HOME/cuda-convnet2/nvmatrix:$HOME/cuda-convnet2/cudaconv3" >> ~./bash_profile
echo "export PYTHONPATH=$HOME/cuda-convnet2" >> ~./bash_profile
# Go to cuda-convnet directory
cd ./libraries/cuda-convnet2
# Compile cuda-convnet2
./build.sh
# Go back to the main directory
cd "$cwd"