wiki:NumpyUbuntu64Install

Version 2 (modified by rwilson, 15 years ago) (diff)

--

This is the process to install a numpy ANUGA onto a 32 bit Ubuntu 8.10 system. The procedure to install onto a later Ubuntu system should be similar.

Using the Ubuntu Synaptic package manager, install the following packages:

subversion
python-dev
python-profiler
g++
python-numpy

Of course, if you prefer using the console, you could do:

sudo install subversion

and so on.

You need to specify a special flag for source package builds:

export CFLAGS=-fPIC

Note: you must execute the above console command in any terminal in which you do the NetCDF and ScientificPython source builds (below).

Next, you need to install NetCDF 4.0.1 from the source package:

tar xzf netcdf.tar.gz
cd netcdf-4.0.1
./configure
make check
sudo make install

Now install ScientificPython 2.9.0:

tar xzf ScientificPython-2.9.0.tar.gz
cd ScientificPython-2.9.0
python setup.py build --numpy
sudo python setup.py install

And finally, install matplotlib through Synaptic:

python-matplotlib