ING Banner
Home > Astronomy > AutoFib2 > af2_configure

Downloading, Installing and Testing:
  1. Download the source and executable for either
    • Linux and Solaris: af2_configure.tar.gz
      This gzip-ed tar file contains the source and the precompiled Linux (i686) and Solaris (SunOS sun4u) executables. The executable was created under Redhat Enterprise but should work without recompiling in many other distributions.
  2. fetch the newest version of small_fibres.dat and wht_prime.dat
  3. unpack it in a directory of your choice
    for GNU tar: gtar -zxf af2_configure.tar.gz
    for Solaris tar: gzip -cd af2_configure.tar.gz | tar -xf -
  4. Copy the newest versions of the files you downloaded in step 2 to af2_configure/bin/.
    cp small_fibres.dat af2_configure/bin/
    cp wht_prime.dat af2_configure/bin/
  5. go into the test directory
    cd af2_configure/test
  6. execute af2_configure (default answers are fine, you will be asked for a .fld file, a few of which you find in the test directory)
    ../bin/af2_configure
    Note: the executable is dynamically linked. You can check if all libraries to run it are available on your system with the following command:
    ldd ../bin/af2_configure.x
    Check the output carefully for error messages. In case there are any, follow the guidelines to compile the package below.
  7. documentation is in af2_configure/doc. Also make sure to check the AF2/WYFFOS page.

Compiling (only if necessary):
  1. set the SYSTEM environment variable
    setenv SYSTEM sun4_Solaris
  2. go into the source directory for af2_configure
    cd af2_configure/src/af2
  3. ./mk deinstall
  4. go into the source directory for chr
    cd ../chr
  5. ./mk deinstall
  6. go into the source directory for sla
    cd ../sla
  7. ./mk deinstall
  8. change back into the src directory
    cd ..
  9. undefine the SYSTEM environment variable
    unsetenv SYSTEM
  10. run the build command
    ./build
    (answer 'y' to the question about using internal versions of chr and sla libraries)



Top | Back


AF2 Instrument Specialist
Last modified: 16 November 2011