SWCAudioDaySoftwareUbuntu » History » Version 6

Steve Welburn, 2012-09-03 05:42 PM

1 2 Steve Welburn
h1. SWC Audio Day Software - Ubuntu Installation
2 1 Steve Welburn
3 1 Steve Welburn
* Copied from Lion instructions... updating as progresses
4 1 Steve Welburn
5 3 Steve Welburn
h3. Installation under Ubuntu 12.04 Precise Pangolin
6 1 Steve Welburn
7 1 Steve Welburn
<pre>sudo apt-get install readline</pre>
8 1 Steve Welburn
9 1 Steve Welburn
Unable to locate package readline
10 1 Steve Welburn
11 1 Steve Welburn
<pre>sudo apt-get install sqlite</pre>
12 1 Steve Welburn
13 1 Steve Welburn
Installed libsqlite0 and sqlite
14 1 Steve Welburn
15 1 Steve Welburn
<pre>sudo apt-get install libgdbm3 </pre>
16 1 Steve Welburn
17 1 Steve Welburn
libgdm3 is alrady the newest version
18 1 Steve Welburn
19 1 Steve Welburn
<pre>sudo apt-get install pkg-config</pre>
20 1 Steve Welburn
21 1 Steve Welburn
pkg-config is alrady the newest version
22 1 Steve Welburn
23 4 Steve Welburn
h4. python
24 3 Steve Welburn
<pre>sudo apt-get install python-dev</pre>
25 1 Steve Welburn
26 3 Steve Welburn
Installed development headers for python (so that numpy can build)
27 1 Steve Welburn
28 2 Steve Welburn
h5. Testing (in python)
29 2 Steve Welburn
30 2 Steve Welburn
<pre>
31 2 Steve Welburn
python
32 2 Steve Welburn
</pre>
33 2 Steve Welburn
34 2 Steve Welburn
Gives the python command prompt
35 2 Steve Welburn
36 2 Steve Welburn
<pre>
37 2 Steve Welburn
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
38 2 Steve Welburn
[GCC 4.6.3] on linux2
39 2 Steve Welburn
Type "help", "copyright", "credits" or "license" for more information
40 2 Steve Welburn
</pre>
41 2 Steve Welburn
42 2 Steve Welburn
To leave python
43 2 Steve Welburn
<pre>
44 1 Steve Welburn
exit()
45 1 Steve Welburn
</pre>
46 1 Steve Welburn
47 6 Steve Welburn
h4. pip
48 6 Steve Welburn
49 6 Steve Welburn
A package manager for python
50 1 Steve Welburn
<pre>
51 3 Steve Welburn
sudo easy_install pip
52 1 Steve Welburn
</pre>
53 1 Steve Welburn
54 4 Steve Welburn
55 1 Steve Welburn
h4. Numpy
56 1 Steve Welburn
57 1 Steve Welburn
<pre>
58 3 Steve Welburn
sudo pip install numpy
59 1 Steve Welburn
</pre>
60 1 Steve Welburn
61 1 Steve Welburn
h5. Testing (in python)
62 1 Steve Welburn
63 1 Steve Welburn
<pre>
64 1 Steve Welburn
import numpy
65 1 Steve Welburn
print numpy.__version__
66 1 Steve Welburn
print numpy.__file__
67 1 Steve Welburn
quit()
68 1 Steve Welburn
</pre>
69 1 Steve Welburn
70 5 Steve Welburn
You should get numpy version 1.6.2 and a file starting with a path @/usr/local/lib/python/2.7/...@
71 1 Steve Welburn
72 1 Steve Welburn
h4. Scipy
73 1 Steve Welburn
74 1 Steve Welburn
<pre>
75 1 Steve Welburn
brew install gfortran
76 1 Steve Welburn
pip install scipy
77 1 Steve Welburn
</pre>
78 1 Steve Welburn
79 1 Steve Welburn
h5. Testing (in python)
80 1 Steve Welburn
81 1 Steve Welburn
<pre>
82 1 Steve Welburn
import scipy
83 1 Steve Welburn
print scipy.__version__
84 1 Steve Welburn
print scipy.__file__
85 1 Steve Welburn
quit()
86 1 Steve Welburn
</pre>
87 1 Steve Welburn
88 1 Steve Welburn
You should get scipy version 0.10.1 and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@
89 1 Steve Welburn
90 1 Steve Welburn
h4. Matplotlib
91 1 Steve Welburn
92 1 Steve Welburn
(couldn't get matplotlib installed using pip; had to download and manually install it  instead)
93 1 Steve Welburn
94 1 Steve Welburn
<pre>
95 1 Steve Welburn
git clone https://github.com/matplotlib/matplotlib.git
96 1 Steve Welburn
cd matplotlib
97 1 Steve Welburn
python setup.py build
98 1 Steve Welburn
python setup.py install
99 1 Steve Welburn
</pre>
100 1 Steve Welburn
101 1 Steve Welburn
h5. Testing (in Python)
102 1 Steve Welburn
103 1 Steve Welburn
<pre>
104 1 Steve Welburn
import matplotlib
105 1 Steve Welburn
print matplotlib.__version__
106 1 Steve Welburn
print matplotlib.__file__
107 1 Steve Welburn
quit()
108 1 Steve Welburn
</pre>
109 1 Steve Welburn
110 1 Steve Welburn
You should get matplotlib version 1.2.x and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@
111 1 Steve Welburn
112 1 Steve Welburn
h4. Audiolab
113 1 Steve Welburn
114 1 Steve Welburn
<pre>
115 1 Steve Welburn
pip install scikits.audiolab 
116 1 Steve Welburn
</pre>
117 1 Steve Welburn
118 1 Steve Welburn
h5. Testing (in Python)
119 1 Steve Welburn
120 1 Steve Welburn
<pre>
121 1 Steve Welburn
import scikits.audiolab
122 1 Steve Welburn
print scikits.audiolab.__version__
123 1 Steve Welburn
print scikits.audiolab.__file__
124 1 Steve Welburn
quit()
125 1 Steve Welburn
</pre>
126 1 Steve Welburn
127 1 Steve Welburn
You should get scikits.audiolab version 0.11.0 and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@