boawiki:

This section describes how to install BoA and all required additional software packages.

So far, BoA has been successfully installed and used in various LINUX distributions and on Mac OS X.

This documentation descibes the installation process on

In addition, BoA has been reported to be installed and working properly on

Prerequisites

For the LINUX distributions covered by this documentation, the following software packages must be installed prior to the installation of BoA to be able to install and run BoA. (The given version numbers indicate the versions that where used during development and tests with the respective LINUX distribution.)

SuSE 10.0 (32bit version)

Package

Version

gcc / gcc-c++

4.0.2

gcc-fortran

4.0.2

compat-g77

3.3.5

readline-devel

5.0

libpng-devel

1.2.8

xorg-x11-devel

6.8.2

findutils-locate

4.2.23

Depending on the original setup, some or all of the packages specified in the table may already be installed on your system. Use SuSE's package manager YaST to check if the necessary packages are present and to install or update them if necessary.

Scientific Linux 4.2 (32bit version)}

Package

Version

gcc / gcc-c++

3.4.4

gcc4-gfortran

4.0.1

gcc-g77

3.4.4

readline-devel

4.3

libpng-devel

1.2.7

xorg-x11-devel

6.8.2

findutils

4.1.20

With the exception of gcc4-gfortran, all packages listed in the table are part of a standard Workstation installation. If necessary, use the package manager yum to install gcc4-gfortran and any other missing package.

Fedora Core 6 (32bit version)

Package

Version

gcc / gcc-c++

4.1.2

gcc-gfortran

4.1.2

compat-gcc-34-g77

3.4.6

readline-devel

5.1

libpng-devel

2.1.2.10

libX11-devel

1.0.3

findutils

1:4.2.27

With the exception of compat-gcc-34-g77, all packages listed in the table are part of a standard Software development installation. If necessary, use the package manager yum to install compat-gcc-34-g77 and any other missing package.

Fedora Core 7 (32bit version)

Package

Version

gcc / gcc-c++

4.1.2

gcc-gfortran

4.1.2

compat-gcc-34-g77

3.4.6

readline-devel

5.2

libpng-devel

2.1.2.16

libX11-devel

1.0.3

findutils

1:4.2.29

With the exception of compat-gcc-34-g77, all packages listed in the table are part of a standard Software development installation. If necessary, use the package manager yum to install compat-gcc-34-g77 and any other missing package.

Conflicts with other software

BoA is delivered including a set of programs and libraries (called the BoA Library) necessary to run BoA. This makes a installation of BoA more or less self-contained and reduces the chance of conflicts with other software installed on your system.

However, the behaviour of a system is not only determined by the set of software that is installed on it, but also by the environment that is definded both system-wide and on a per-user basis in various startup scripts. (For a complete list of the startup scripts consult the documentation of your system; most important are the startup scripts of the shell in use. See man bash and man csh)

During the installation of BoA, the installation script tries to set up an environment that allows a smooth installation. When running boa, BoA's start-up scripts .boarc.sh and .boarc.csh try the same. However, there may be situations when this is not successfull. If this is the case, careful inspection of the environment must be performed. (To give an example: During the development phase of BoA, running BoA failed reproducably on one particular system; after scrutinizing various startup scripts, the cause turned out to be a startup script for IRAF, that changed the C and Fortran compilers. After commenting out the IRAF related lines, BoA ran without any further problems.)

Installing BoA

A complete distribution ofBoA contains two tar-archives:

(<DATE> indicates the release date of each tar-archive.)

A complete installation of BoA includes installation of the BoA Library and of BoA itself. Both installation steps are described below.

Please note that the following instructions relate to the installation of BoA on the LINUX distributions listed above. For installation instructions for other LINUX distributions and for Mac OS X, please consult http://www.astro.uni-bonn.de/boawiki.

Installing the BoA Library

The BoA Library is contained in the tar-archive BoaLib-<DATE>.tgz. It is a set of programs and libraries necessary to run BoA, in versions that have been verfied to work properly together with BoA's scripts (contained in Boa-<DATE>.tgz).

In particular, the BoA Library contains the following programs and libraries:

Program/library

Version

Python

2.3.2

Numeric

24.2

swig

1.3.23

scipy_distutils

3.3_33.571

f2py

2.44.240_1892

pgplot

5.2

pPGPLOT

1.3

slalib

pySLALIB

0.4

blas/lapack

compiled witth g77 and gfortran

cfitsio

2.49

pCFITSIO

BoA-FFTW-Numpy

1.0

mpfit

wcslib

4.1

dchelper

apexFitsWriter

apexCalibrator

The installation process will install the BoA Library in its own dirctory tree. The root of this directory tree is referred to as BOA_LIB_HOME in this document. If not specified otherwise during the installation process, BOA_LIB_HOME is $HOME/boalib, where $HOME is your home directory.

You do not need root privileges to install the BoA Library as long as you install it to a location where you have write permission.

To install the BoA Library, proceed as follows:

1. Unpack the archive to the dirctory BoaLib-<DATE>-install by typing

     tar zxf BoaLib-<DATE>.tgz

     cd BoaLib-<DATE>-install

2. Run the configure script to create the install script:

     ./configure




     ./configure --with-python

     ./configure --without-python

     ./configure --with-all

     ./configure --with-python --without-slalib

     ./configure --with-all --without-python

     ./configure --help

     ./configure --prefix=$HOME/myOwnBoaLibrary



3. Run the install script:

     ./install 

Troubleshooting

     ./configure --with-all

Installing BoA

The tar-archive Boa-<DATE>.tgz contains

Before you can install BoA, you must install the BoA Library contained in BoaLib-<DATE>.tgz (see above).

By default, the BoA Library is installed into a dirctory tree with root $HOME/boalib}. However, when installing the BoA Library you can choose a different directory tree by specifying the prefix option for the BoaLib-<DATE>-install/configure command. The root of this directory tree (either the default $HOME/boalib or the one secified by the prefix option of BoaLib-<DATE>-install/configure) is referred to as BOA_LIB_HOME in this document.

BoA'a installation process will install the software in its own dirctory tree. The default for the root of this tree is $HOME/boauser where $HOME is your home directory. If you want to install BoA to another location, you can specify BoA's root dirctory during the the configuration as described below.

You do not need root privileges to install the software, as long as you install it to a location where you have write permission.

To install BoA, proceed as follows:

1. Unpack the archive to the dirctory Boa-<DATE>-install by typing

     tar zxf Boa-<DATE>.tgz

     cd Boa-<DATE>-install

2. Run the configure script to create the install script:

     ./configure BOA_LIB_HOME=$BOA_LIB_HOME

Examples:

     ./configure --without-examples

     ./configure --help

     ./configure --prefix=$HOME/myOwnBoa

3. Run the install script:

     ./install 

4. Run BoA:

     source ~/.boarc.sh (if you are working in bash)

     source ~/.boarc.csh (if you are working in csh)

     boa



Troubleshooting

  • In case of errors during the installation, the install script prints out error messages and aborts. Consult the log files that are specified in the error message to find out possible reasons for the failure. A possible cause for errors during the installation is an incorrect

    specification of the variable BOA_LIB_HOME and/or the prefix option when running the configure script. Check your settings and rerun configure and install if necessary. Other possible causes for problems both during installtion and when running BoA are conflicts with the environment defined by the set of path settings, shell variables etc. which are set both in system-wide and user-specific startup scripts. (For a complete list of the startup scripts consult the documentation of your system; most important are the startup scripts of the shell in use. See man bash and man csh.) During the installation of BoA, the installation script tries to set up an environment that allows a smooth installation. When running BoA, the

    start-up scripts .boarc.sh and .boarc.csh try the same. However, there may be situations when this is not successfull. If this is the case, careful inspection of the environment must be performed. (To give an example: During the development phase of BoA, running BoA failed reproducably on one particular system; after scrutinizing various startup scripts, the cause turned out to be a startup script for IRAF, that changed the C and Fortran compilers. After commenting out the IRAF related lines, BoA ran without any further problems.)

Uninstalling BoA

To uninstall BoA, delete the directory tree into which BoA has been installed, and the startup scripts ~/.boarc.sh and ~/.boarc.csh.

To uninstall the BoA Library, delete the directory tree to which the BoA Library has been installed.

boawiki: Boa/InstallationNew (last edited 2009-12-17 15:40:32 by localhost)