Child pages
  • Hyak_cfitsio
Skip to end of metadata
Go to start of metadata

Install

cfitsio is a pre-req for healpix. Below are steps to install cfitsio. Here xyz is your group name and abc is ysour userid.

srun -p build --time=2:00:00 --mem=100G --pty /bin/bash

mkdir /gscratch/xyz/abc/cfitsio

mkdir /gscratch/xyz/abc/cfitsio_install

cd /gscratch/xyz/abc/cfitsio

wget http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio_latest.tar.gz

gunzip cfitsio_latest.tar.gz

tar -xvf cfitsio_latest.tar

cd cfitsio-3.47     (you may have a cfitsio version number different from 3.47)

./configure --prefix=/gscratch/xyz/abc/cfitsio/cfitsio_install

make

make install


Compile your program:

gcc -o myprog myprog.c -L/gscratch/xyz/abc/cfitsio_install/lib -I/gscratch/xyz/abc/cfitsio_install/include -lcfitsio -lm


  • No labels