SWCAudioDaySoftwareUbuntu » History » Version 1

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

1 1 Steve Welburn
h1. SWCAudioDaySoftware
2 1 Steve Welburn
3 1 Steve Welburn
* Copied from Lion instructions... updating as progresses
4 1 Steve Welburn
5 1 Steve Welburn
6 1 Steve Welburn
h3. Installation under Ubuntu 12.04
7 1 Steve Welburn
8 1 Steve Welburn
<pre>sudo apt-get install readline</pre>
9 1 Steve Welburn
10 1 Steve Welburn
Unable to locate package readline
11 1 Steve Welburn
12 1 Steve Welburn
<pre>sudo apt-get install sqlite</pre>
13 1 Steve Welburn
14 1 Steve Welburn
Installed libsqlite0 and sqlite
15 1 Steve Welburn
16 1 Steve Welburn
<pre>sudo apt-get install libgdbm3 </pre>
17 1 Steve Welburn
18 1 Steve Welburn
libgdm3 is alrady the newest version
19 1 Steve Welburn
20 1 Steve Welburn
<pre>sudo apt-get install pkg-config</pre>
21 1 Steve Welburn
22 1 Steve Welburn
pkg-config is alrady the newest version
23 1 Steve Welburn
24 1 Steve Welburn
h3. Installation under OSX 10.7 (Lion) 
25 1 Steve Welburn
26 1 Steve Welburn
(assuming homebrew  is already installed)
27 1 Steve Welburn
28 1 Steve Welburn
<pre>brew install readline sqlite gdbm pkg-config
29 1 Steve Welburn
brew install python --framework --universal</pre>
30 1 Steve Welburn
31 1 Steve Welburn
(add this to ~/.bash_profile)
32 1 Steve Welburn
@export PATH=/usr/local/share/python:$PATH@
33 1 Steve Welburn
34 1 Steve Welburn
<pre>
35 1 Steve Welburn
cd /System/Library/Frameworks/Python.framework/Versions
36 1 Steve Welburn
sudo rm Current
37 1 Steve Welburn
ln -s /usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/Current
38 1 Steve Welburn
39 1 Steve Welburn
source ~/.bash_profile (or reload terminal)
40 1 Steve Welburn
41 1 Steve Welburn
easy_install pip
42 1 Steve Welburn
</pre>
43 1 Steve Welburn
44 1 Steve Welburn
h4. Numpy
45 1 Steve Welburn
46 1 Steve Welburn
<pre>
47 1 Steve Welburn
pip install numpy
48 1 Steve Welburn
</pre>
49 1 Steve Welburn
50 1 Steve Welburn
h5. Testing (in python)
51 1 Steve Welburn
52 1 Steve Welburn
<pre>
53 1 Steve Welburn
import numpy
54 1 Steve Welburn
print numpy.__version__
55 1 Steve Welburn
print numpy.__file__
56 1 Steve Welburn
quit()
57 1 Steve Welburn
</pre>
58 1 Steve Welburn
59 1 Steve Welburn
You should get numpy version 1.6.2 and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@
60 1 Steve Welburn
61 1 Steve Welburn
h4. Scipy
62 1 Steve Welburn
63 1 Steve Welburn
<pre>
64 1 Steve Welburn
brew install gfortran
65 1 Steve Welburn
pip install scipy
66 1 Steve Welburn
</pre>
67 1 Steve Welburn
68 1 Steve Welburn
h5. Testing (in python)
69 1 Steve Welburn
70 1 Steve Welburn
<pre>
71 1 Steve Welburn
import scipy
72 1 Steve Welburn
print scipy.__version__
73 1 Steve Welburn
print scipy.__file__
74 1 Steve Welburn
quit()
75 1 Steve Welburn
</pre>
76 1 Steve Welburn
77 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/...@
78 1 Steve Welburn
79 1 Steve Welburn
h4. Matplotlib
80 1 Steve Welburn
81 1 Steve Welburn
(couldn't get matplotlib installed using pip; had to download and manually install it  instead)
82 1 Steve Welburn
83 1 Steve Welburn
<pre>
84 1 Steve Welburn
git clone https://github.com/matplotlib/matplotlib.git
85 1 Steve Welburn
cd matplotlib
86 1 Steve Welburn
python setup.py build
87 1 Steve Welburn
python setup.py install
88 1 Steve Welburn
</pre>
89 1 Steve Welburn
90 1 Steve Welburn
h5. Testing (in Python)
91 1 Steve Welburn
92 1 Steve Welburn
<pre>
93 1 Steve Welburn
import matplotlib
94 1 Steve Welburn
print matplotlib.__version__
95 1 Steve Welburn
print matplotlib.__file__
96 1 Steve Welburn
quit()
97 1 Steve Welburn
</pre>
98 1 Steve Welburn
99 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/...@
100 1 Steve Welburn
101 1 Steve Welburn
h4. Audiolab
102 1 Steve Welburn
103 1 Steve Welburn
<pre>
104 1 Steve Welburn
pip install scikits.audiolab 
105 1 Steve Welburn
</pre>
106 1 Steve Welburn
107 1 Steve Welburn
h5. Testing (in Python)
108 1 Steve Welburn
109 1 Steve Welburn
<pre>
110 1 Steve Welburn
import scikits.audiolab
111 1 Steve Welburn
print scikits.audiolab.__version__
112 1 Steve Welburn
print scikits.audiolab.__file__
113 1 Steve Welburn
quit()
114 1 Steve Welburn
</pre>
115 1 Steve Welburn
116 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/...@