[1369] | 1 | = Installing ASAP and dependencies from source =
|
---|
[1194] | 2 |
|
---|
[1369] | 3 | * You need '''scons, flex, bison, g++, g77/gfortran, cfitsio''' to build ASAP. These should be available as system packages (e.g. rpm, deb etc.)
|
---|
| 4 | * You will also need '''ipython, matplotlib, numpy''' to run ASAP
|
---|
[1194] | 5 |
|
---|
[1369] | 6 | * '''rpfits'''
|
---|
| 7 | Download [ftp://ftp.atnf.csiro.au/pub/software/rpfits/rpfits.tar.gz rpfits]
|
---|
| 8 | {{{
|
---|
| 9 | tar zxvf rpfits.tar.gz; cd rpfits/linux
|
---|
| 10 | make install
|
---|
| 11 | }}}
|
---|
[1194] | 12 |
|
---|
[1369] | 13 | * '''wcslib'''
|
---|
| 14 | Download [ftp://ftp.atnf.csiro.au/pub/software/wcslib/wcslib.tar.gz wcslib]
|
---|
| 15 | {{{
|
---|
| 16 | tar zxvf wcslib.tar.gz; cd wcslib
|
---|
| 17 | touch C/*.l
|
---|
| 18 | make install
|
---|
| 19 | }}}
|
---|
[1194] | 20 |
|
---|
[1369] | 21 | * '''casacore''' (aips++)
|
---|
| 22 | Download [http://casacore.googlecode.com/files/casacore-0.1.1.tar.bz2 casacore-0.1.1])
|
---|
| 23 | {{{
|
---|
| 24 | tar jxvf casacore-0.1.1.tar.bz2; cd casacore-0.1.1
|
---|
| 25 | python setup.py prefix=/usr/local install
|
---|
| 26 | }}}
|
---|
| 27 | Patience...
|
---|
[1194] | 28 |
|
---|
[1369] | 29 | * ASAP
|
---|
| 30 | (You need to have subversion installed)
|
---|
| 31 | {{{
|
---|
| 32 | svn co http://sourcecode.atnf.csiro.au/repos/asap/tags/asap2.2.0
|
---|
| 33 | cd asap2.2.0
|
---|
| 34 | }}}
|
---|
[1194] | 35 |
|
---|
[1369] | 36 | You need to have the scons package installed (see o/s specific notes)
|
---|
| 37 | {{{
|
---|
| 38 | scons mode=release casacoreroot=/usr/local
|
---|
| 39 | }}}
|
---|
[1194] | 40 |
|
---|
[1369] | 41 | Now it's probably best to get the asap data repository.
|
---|
| 42 | {{{
|
---|
| 43 | export ASAPDATA=.
|
---|
| 44 | ./bin/asap_update_data
|
---|
| 45 | unset ASAPDATA
|
---|
| 46 | }}}
|
---|
[1194] | 47 |
|
---|
[1369] | 48 | Install it to the default location:
|
---|
| 49 | {{{
|
---|
| 50 | su
|
---|
| 51 | scons mode=release casacoreroot=/usr/local install
|
---|
| 52 | }}}
|
---|
[1194] | 53 |
|
---|
[1369] | 54 | * ASAP Data
|
---|
| 55 | {{{
|
---|
| 56 | su
|
---|
| 57 | asap_update_data
|
---|
| 58 | }}}
|
---|
[1194] | 59 |
|
---|
[1369] | 60 | Now you can test it by executing:
|
---|
| 61 | {{{
|
---|
| 62 | asap
|
---|
| 63 | }}}
|
---|
[1194] | 64 |
|
---|
[1369] | 65 | To make a binary release to help out others with the same operating system, replace
|
---|
| 66 | <identifier> with something identifying your platform, e.g. '''fc5''' for fedora core 5, or '''fc5_x86_64''' for the 64bit version of fc5 and run the following
|
---|
| 67 | {{{
|
---|
| 68 | scons mode=release casacoreroot=/usr/local makedist=<identifier>
|
---|
| 69 | }}}
|
---|
| 70 | Then email the rsyulting tarball in the dist subdirectory to mailto:Malte.Marquarding@csiro.au
|
---|
| 71 |
|
---|