-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·53 lines (41 loc) · 1.17 KB
/
setup.sh
File metadata and controls
executable file
·53 lines (41 loc) · 1.17 KB
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
#!/bin/bash
me=$(whoami)
line=$(grep -rn -w '*) return;;' ../.bashrc | cut -d : -f 1)
if [ $me = "root" ]
then
echo "Please run as the root"
else
if [ -z $line ]
then
echo ".bashrc is good "
else
sed -i "${line}s>.*> *)\n export PATH=/usr/local/cuda-7.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\n export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:\n export __GL_PERFMON_MODE=1\\n return;;>" ~/.bashrc
fi
cd ~/
apt-get update -y
apt-get install nano -y
apt-get install git -y
apt-get install python-pip -y
#apt-get install nvcc -y
apt-get install python-scipy -y
apt-get install python-sympy -y
apt-get install python-zmq -y
apt-get install python-wxgtk2.8 -y
apt-get install python-pygame -y
apt-get install libboost-all-dev -y
pip install mako
apt-get install python-execnet -y
export CUDA_ROOT=/usr/local/cuda
#pycuda
PATH=/usr/local/cuda-7.0/bin:$PATH pip install pycuda
#now configuring
#sailfish
git clone https://github.com/sailfish-team/sailfish
cd sailfish*
export PYTHONPATH=$PWD:$PYTHONPATH
python configure.py
python setup.py build
python setup.py install
#openCV
apt-get install libopencv-dev python-opencv -y
fi