-
Notifications
You must be signed in to change notification settings - Fork 38
/
dependencies.sh
executable file
·78 lines (62 loc) · 2.16 KB
/
dependencies.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
#Things to be installed:
# ffmpeg >= 2.6.2
# pydub >= 0.11
# pyaudio >= 0.2.7
# numpy >= 1.8.2
# scipy >= 0.13.3
# matplotlib >= 1.3.1
# mysqldb >= 1.2.3
# opencv >= 2.4.8
# django >= 1.6.1
echo "Installing ffmpeg"
sudo apt-get install build-essential libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libfaac-dev libopenjpeg-dev libx264-dev libvpx-dev
mkdir software
cd software
wget http://ffmpeg.org/releases/ffmpeg-2.7.2.tar.bz2
cd ..
mkdir src
cd src
tar xvjf ../software/ffmpeg-2.7.2.tar.bz2
cd ffmpeg-2.7.2
./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-libvpx
sudo make -j 2
sudo make install
sudo ldconfig
echo "Installing python-pip"
sudo apt-get install python-pip
echo "Installing OpenCV"
sudo apt-get install python-opencv
echo "Insatlling numpy"
sudo pip install numpy;
echo "Installing scipy"
sudo pip install scipy;
echo "Installing pyaudio"
#For x86, change amd64 to x86 and it works
wget https://people.csail.mit.edu/hubert/pyaudio/packages/python-pyaudio_0.2.8-1_amd64.deb;
sudo dpkg -i python-pyaudio_0.2.8-1_amd64.deb
echo "Installing matplotlib"
sudo pip install matplotlib;
echo "Installing pydub"
sudo pip install pydub;
echo "Installing mysql"
sudo apt-get install mysql-server
sudo apt-get install mysql-client
sudo apt-get install python-dev libmysqlclient-dev
echo "Installing django"
sudo pip install django;
echo "Installing mysqldb"
sudo apt-get install python-mysql
echo "Installing dejavu"
git clone https://github.com/vasanthkalingeri/dejavu.git
cd dejavu
sudo python setup.py install
echo "Installing nginx"
sudo apt-get install nginx
echo "Installing gunicorn"
pip install gunicorn
#When port audio has trouble installing run the following
#Download the .deb package of portaudio, the following is for amd64, change it to x86 if required.
#wget libportaudio-ocaml_0.2.0-1+b2_amd64.deb
#sudo dpkg -i libportaudio-ocaml_0.2.0-1+b2_amd64.deb
##If dependency errors
#sudo apt-get -f install