SWCAudioDaySoftwareUbuntu » History » Version 9
Steve Welburn, 2012-09-03 06:15 PM
1 | 2 | Steve Welburn | h1. SWC Audio Day Software - Ubuntu Installation |
---|---|---|---|
2 | 1 | Steve Welburn | |
3 | 9 | Steve Welburn | * Cribbed from Lion instructions and updated as it progressed |
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 | 8 | Steve Welburn | libgdm3 is already the newest version |
18 | 1 | Steve Welburn | |
19 | 1 | Steve Welburn | <pre>sudo apt-get install pkg-config</pre> |
20 | 1 | Steve Welburn | |
21 | 8 | Steve Welburn | pkg-config is already the newest version |
22 | 1 | Steve Welburn | |
23 | 4 | Steve Welburn | h4. python |
24 | 7 | Steve Welburn | |
25 | 3 | Steve Welburn | <pre>sudo apt-get install python-dev</pre> |
26 | 1 | Steve Welburn | |
27 | 3 | Steve Welburn | Installed development headers for python (so that numpy can build) |
28 | 1 | Steve Welburn | |
29 | 2 | Steve Welburn | h5. Testing (in python) |
30 | 2 | Steve Welburn | |
31 | 2 | Steve Welburn | <pre> |
32 | 2 | Steve Welburn | python |
33 | 2 | Steve Welburn | </pre> |
34 | 2 | Steve Welburn | |
35 | 2 | Steve Welburn | Gives the python command prompt |
36 | 2 | Steve Welburn | |
37 | 2 | Steve Welburn | <pre> |
38 | 2 | Steve Welburn | Python 2.7.3 (default, Aug 1 2012, 05:16:07) |
39 | 2 | Steve Welburn | [GCC 4.6.3] on linux2 |
40 | 2 | Steve Welburn | Type "help", "copyright", "credits" or "license" for more information |
41 | 2 | Steve Welburn | </pre> |
42 | 2 | Steve Welburn | |
43 | 2 | Steve Welburn | To leave python |
44 | 2 | Steve Welburn | <pre> |
45 | 1 | Steve Welburn | exit() |
46 | 1 | Steve Welburn | </pre> |
47 | 1 | Steve Welburn | |
48 | 6 | Steve Welburn | h4. pip |
49 | 6 | Steve Welburn | |
50 | 6 | Steve Welburn | A package manager for python |
51 | 1 | Steve Welburn | <pre> |
52 | 3 | Steve Welburn | sudo easy_install pip |
53 | 1 | Steve Welburn | </pre> |
54 | 1 | Steve Welburn | |
55 | 4 | Steve Welburn | |
56 | 1 | Steve Welburn | h4. Numpy |
57 | 1 | Steve Welburn | |
58 | 7 | Steve Welburn | You can either: |
59 | 7 | Steve Welburn | * install as an Ubuntu package |
60 | 1 | Steve Welburn | <pre> |
61 | 7 | Steve Welburn | sudo apt-get install python-scipy |
62 | 7 | Steve Welburn | </pre> |
63 | 7 | Steve Welburn | |
64 | 7 | Steve Welburn | * or install from source |
65 | 7 | Steve Welburn | <pre> |
66 | 3 | Steve Welburn | sudo pip install numpy |
67 | 1 | Steve Welburn | </pre> |
68 | 1 | Steve Welburn | |
69 | 1 | Steve Welburn | h5. Testing (in python) |
70 | 1 | Steve Welburn | |
71 | 1 | Steve Welburn | <pre> |
72 | 1 | Steve Welburn | import numpy |
73 | 1 | Steve Welburn | print numpy.__version__ |
74 | 1 | Steve Welburn | print numpy.__file__ |
75 | 1 | Steve Welburn | quit() |
76 | 5 | Steve Welburn | </pre> |
77 | 1 | Steve Welburn | |
78 | 7 | Steve Welburn | You should get numpy version 1.6.2 and a file starting with a path @/usr/local/lib/python2.7/...@ |
79 | 1 | Steve Welburn | |
80 | 1 | Steve Welburn | h4. Scipy |
81 | 1 | Steve Welburn | |
82 | 7 | Steve Welburn | Scipy is available as a package for Ubuntu |
83 | 1 | Steve Welburn | <pre> |
84 | 7 | Steve Welburn | sudo apt-get install python-scipy |
85 | 7 | Steve Welburn | </pre> |
86 | 7 | Steve Welburn | |
87 | 7 | Steve Welburn | This is easier than installing from source using pip as that needs BLAS as a prerequisite. |
88 | 7 | Steve Welburn | <pre> |
89 | 7 | Steve Welburn | sudo apt-get install gfortran |
90 | 1 | Steve Welburn | pip install scipy |
91 | 1 | Steve Welburn | </pre> |
92 | 1 | Steve Welburn | |
93 | 1 | Steve Welburn | h5. Testing (in python) |
94 | 1 | Steve Welburn | |
95 | 1 | Steve Welburn | <pre> |
96 | 1 | Steve Welburn | import scipy |
97 | 1 | Steve Welburn | print scipy.__version__ |
98 | 1 | Steve Welburn | print scipy.__file__ |
99 | 1 | Steve Welburn | quit() |
100 | 1 | Steve Welburn | </pre> |
101 | 1 | Steve Welburn | |
102 | 7 | Steve Welburn | You should get scipy version 0.9.0 and a file starting with a path @/usr/lib/python2.7/...@ |
103 | 1 | Steve Welburn | |
104 | 1 | Steve Welburn | h4. Matplotlib |
105 | 1 | Steve Welburn | |
106 | 7 | Steve Welburn | Scipy is available as a package for Ubuntu |
107 | 1 | Steve Welburn | <pre> |
108 | 7 | Steve Welburn | sudo apt-get install python-matplotlib |
109 | 1 | Steve Welburn | </pre> |
110 | 1 | Steve Welburn | |
111 | 1 | Steve Welburn | h5. Testing (in Python) |
112 | 1 | Steve Welburn | |
113 | 1 | Steve Welburn | <pre> |
114 | 1 | Steve Welburn | import matplotlib |
115 | 1 | Steve Welburn | print matplotlib.__version__ |
116 | 1 | Steve Welburn | print matplotlib.__file__ |
117 | 1 | Steve Welburn | quit() |
118 | 1 | Steve Welburn | </pre> |
119 | 1 | Steve Welburn | |
120 | 7 | Steve Welburn | You should get matplotlib version 1.1.1rc and a file starting with a path @/usr/lib/pymodules/python2.7/...@ |
121 | 1 | Steve Welburn | |
122 | 1 | Steve Welburn | h4. Audiolab |
123 | 1 | Steve Welburn | |
124 | 1 | Steve Welburn | <pre> |
125 | 1 | Steve Welburn | pip install scikits.audiolab |
126 | 1 | Steve Welburn | </pre> |
127 | 7 | Steve Welburn | |
128 | 7 | Steve Welburn | |
129 | 7 | Steve Welburn | ** FAILING AT THIS POINT AS pip CAN'T FIND SNDFILE |
130 | 1 | Steve Welburn | |
131 | 1 | Steve Welburn | h5. Testing (in Python) |
132 | 1 | Steve Welburn | |
133 | 1 | Steve Welburn | <pre> |
134 | 1 | Steve Welburn | import scikits.audiolab |
135 | 1 | Steve Welburn | print scikits.audiolab.__version__ |
136 | 1 | Steve Welburn | print scikits.audiolab.__file__ |
137 | 1 | Steve Welburn | quit() |
138 | 1 | Steve Welburn | </pre> |
139 | 1 | Steve Welburn | |
140 | 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/...@ |