| | 1 | Using the Ubuntu Synaptic package manager, install the following packages: |
| | 2 | {{{ |
| | 3 | subversion |
| | 4 | python-dev |
| | 5 | python-profiler |
| | 6 | g++ |
| | 7 | python-numpy |
| | 8 | }}} |
| | 9 | |
| | 10 | Of course, if you prefer using the console, you could do: |
| | 11 | {{{ |
| | 12 | sudo install subversion |
| | 13 | }}} |
| | 14 | and so on. |
| | 15 | |
| | 16 | You need to specify a special flag for source package builds: |
| | 17 | {{{ |
| | 18 | export CFLAGS=-fPIC |
| | 19 | }}} |
| | 20 | Note: you must execute the above console command in any terminal in which you do the NetCDF and |
| | 21 | !ScientificPython source builds (below). |
| | 22 | |
| | 23 | Next, you need to install NetCDF 4.0.1 from the source package: |
| | 24 | {{{ |
| | 25 | tar xzf netcdf.tar.gz |
| | 26 | cd netcdf-4.0.1 |
| | 27 | ./configure |
| | 28 | make check |
| | 29 | sudo make install |
| | 30 | }}} |
| | 31 | |
| | 32 | Now install !ScientificPython 2.9.0: |
| | 33 | {{{ |
| | 34 | tar xzf ScientificPython-2.9.0.tar.gz |
| | 35 | cd ScientificPython-2.9.0 |
| | 36 | python setup.py build --numpy |
| | 37 | sudo python setup.py install |
| | 38 | }}} |
| | 39 | |
| | 40 | And finally, install matplotlib through Synaptic: |
| | 41 | {{{ |
| | 42 | python-matplotlib |
| | 43 | }}} |