1 | = Installing ASAP and dependencies from source = |
---|
2 | |
---|
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 |
---|
5 | |
---|
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 | }}} |
---|
12 | |
---|
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 | }}} |
---|
20 | |
---|
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... |
---|
28 | |
---|
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 | }}} |
---|
35 | |
---|
36 | You need to have the scons package installed (see o/s specific notes) |
---|
37 | {{{ |
---|
38 | scons mode=release casacoreroot=/usr/local |
---|
39 | }}} |
---|
40 | |
---|
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 | }}} |
---|
47 | |
---|
48 | Install it to the default location: |
---|
49 | {{{ |
---|
50 | su |
---|
51 | scons mode=release casacoreroot=/usr/local install |
---|
52 | }}} |
---|
53 | |
---|
54 | * ASAP Data |
---|
55 | {{{ |
---|
56 | su |
---|
57 | asap_update_data |
---|
58 | }}} |
---|
59 | |
---|
60 | Now you can test it by executing: |
---|
61 | {{{ |
---|
62 | asap |
---|
63 | }}} |
---|
64 | |
---|
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 | |
---|