SWCAudioDaySoftwareUbuntu » History » Version 10

Version 9 (Steve Welburn, 2012-09-03 06:15 PM) → Version 10/15 (Steve Welburn, 2012-09-03 06:16 PM)

h1. SWC Audio Day Software - Ubuntu Installation

* Cribbed from Lion instructions and updated as it progressed

h3. Installation under Ubuntu 12.04 Precise Pangolin

<pre>sudo apt-get install readline</pre>

Unable to locate package readline

<pre>sudo apt-get install sqlite</pre>

Installed libsqlite0 and sqlite

<pre>sudo apt-get install libgdbm3 </pre>

libgdm3 is already the newest version

<pre>sudo apt-get install pkg-config</pre>

pkg-config is already the newest version

h4. python

<pre>sudo apt-get install python</pre> python-dev&lt;/pre&gt;

Installed development headers for python (so that numpy can build)

h5. Testing (in python)

<pre>
python
</pre>

Gives the python command prompt

<pre>
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information
</pre>

To leave python
<pre>
exit()
</pre>

h4. pip

A package manager for python
<pre>
sudo easy_install pip
</pre>

h4. Numpy

You can either:
* install as an Ubuntu package
<pre>
sudo apt-get install python-scipy
</pre>

* or install from source, which requires development headers for python source
<pre>
sudo apt-get install python-dev

sudo pip install numpy
</pre>

h5. Testing (in python)

<pre>
import numpy
print numpy.__version__
print numpy.__file__
quit()
</pre>

You should get numpy version 1.6.2 and a file starting with a path @/usr/local/lib/python2.7/...@

h4. Scipy

Scipy is available as a package for Ubuntu
<pre>
sudo apt-get install python-scipy
</pre>

This is easier than installing from source using pip as that needs BLAS as a prerequisite.
<pre>
sudo apt-get install gfortran
pip install scipy
</pre>

h5. Testing (in python)

<pre>
import scipy
print scipy.__version__
print scipy.__file__
quit()
</pre>

You should get scipy version 0.9.0 and a file starting with a path @/usr/lib/python2.7/...@

h4. Matplotlib

Scipy is available as a package for Ubuntu
<pre>
sudo apt-get install python-matplotlib
</pre>

h5. Testing (in Python)

<pre>
import matplotlib
print matplotlib.__version__
print matplotlib.__file__
quit()
</pre>

You should get matplotlib version 1.1.1rc and a file starting with a path @/usr/lib/pymodules/python2.7/...@

h4. Audiolab

<pre>
pip install scikits.audiolab
</pre>

** FAILING AT THIS POINT AS pip CAN'T FIND SNDFILE

h5. Testing (in Python)

<pre>
import scikits.audiolab
print scikits.audiolab.__version__
print scikits.audiolab.__file__
quit()
</pre>

You should get scikits.audiolab version 0.11.0 and a file starting with a path @/usr/local/Cellar/python/2.7.3/...@