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