Changeset 1369


Ignore:
Timestamp:
05/03/07 10:53:03 (18 years ago)
Author:
mar637
Message:

Forgot to update the INSTALL instructions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/asap2.2.0/INSTALL

    r1194 r1369  
    1 Requirements
    2 ============
     1= Installing ASAP and dependencies from source =
    32
    4 * scons
     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
    55
    6 Installation
    7 ============
     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}}}
    812
    9 scons has several targets. It is recommended to execute them sequentially.
    10 The normal install procedure is as follows:
    11    . <path_to_casa_asap>/aipsinit.sh
    12    scons
    13    # Do this if you haven't got a data directory already
     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{{{
    1443   export ASAPDATA=.
    1544   ./bin/asap_update_data
    16    #
    17    scons install
     45   unset ASAPDATA
     46}}}
    1847
     48  Install it to the default location:
     49{{{
     50   su
     51   scons mode=release casacoreroot=/usr/local install
     52}}}
    1953
    20 Obtaining the data directory
    21 ============================
    22 The data repository can be obtained seperately after installing ASAP.
    23 Before you run asap for the first time simply run
    24     asap_update_data
    25 This will install the data repository into the correct location.
     54 * ASAP Data
     55{{{
     56   su
     57   asap_update_data
     58}}}
    2659
    27 There are several ways to do this.
    28 a) If you already hae the 'data' directory, copy it to the root directory and run the normal install procedure.
    29    scons
    30    scons install
     60Now you can test it by executing:
     61{{{
     62   asap
     63}}}
    3164
    32 b) You can obtain the data repository from the ftp site.
    33    Simply run
    34         export ASAPDATA=.
    35         ./bin/asap_update_data
    36    This will retrieve and unpack the data directory.
    37    After this run:
    38         scons install
     65To 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{{{
     68scons mode=release casacoreroot=/usr/local makedist=<identifier>
     69}}}
     70Then email the rsyulting tarball in the dist subdirectory to mailto:Malte.Marquarding@csiro.au
    3971
    40 Creating a binary distribution
    41 ==============================
    42 
    43 after building using 'scons', you can create a compressed tarball of the binaries. This is done via the target 'makedist='. The argument should be an obvious identifier for the system you want to support, e.g. 'sarge' or 'fc5-x86_64'
    44 
    45     scons makedist=sarge
    46 
    47 This will create an archive in the subdirectory 'dist' named 'asap-X.Y.Z-sarge.tar.bz2', where X,Y,Z are the version numbers e.g 2.1.0.
Note: See TracChangeset for help on using the changeset viewer.