CFITSIO

From CBLFS
Jump to navigationJump to search
Download Source: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3200.tar.gz

Introduction to CFITSIO

CFITSIO is a library of C and Fortran subroutines for reading and writing data files in FITS (Flexible Image Transport System) data format. CFITSIO provides simple high-level routines for reading and writing FITS files that insulate the programmer from the internal complexities of the FITS format. CFITSIO also provides many advanced features for manipulating and filtering the information in FITS files.

Project Homepage: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html

Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

Caution.png

Note

The following sed fixes are somewhat hackish. Really, configure.in and Makefile.in should be fixed.
Caution.png

Note

The FC environment variable isn't really necessary, as the fortran source files are not compiled as part of the build.


32Bit

Compile the package:

sed -i- Makefile.in -e "s@/bin/mv@`which mv` -v@g" -e "s@/bin/cp@`which cp` -v@g" \
    -e "s@/bin/sed@`which sed`@g" -e "s@/bin/rm@`which rm` -v@g" &&
USE_ARCH=32 CC="gcc ${BUILD32}" FC="gfortran ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package

make install

N32

to do ...

64Bit

Compile the package:

sed -i- Makefile.in -e "s@/bin/mv@`which mv` -v@g" -e "s@/bin/cp@`which cp` -v@g" \
    -e "s@/bin/sed@`which sed`@g" -e "s@/bin/rm@`which rm` -v@g" \
    -e "s@/lib@/lib64@g" &&
USE_ARCH=64 CC="gcc ${BUILD64}" FC="gfortran ${BUILD64}" \
    ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install