Difference between revisions of "CFITSIO"
From CBLFS
Jump to navigationJump to search (Added 32Bit and 64Bit build instructions.) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 25: | Line 25: | ||
== Multilib == | == Multilib == | ||
− | + | {{Note|The following sed fixes are somewhat hackish. Really, configure.in and Makefile.in should be fixed.}} | |
+ | {{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 | ||
+ | |||
+ | [[Category:General Libs]] |
Latest revision as of 21:22, 31 March 2009
Download Source: | ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3200.tar.gz |
---|
Contents
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
The following sed fixes are somewhat hackish. Really, configure.in and Makefile.in should be fixed.
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