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