View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Installing cfitsio on Mac

Barbara Rojas wrote on Jul 09, 2009

Hey,

I installed the CIRRED CTIO package, but some of the tasks need the cfitsio library and I haven't been able to install it properly ... do I have to install it in an specific directory? ... I followed the instructions in http://heasarc.gsfc.nasa.gov/fitsio/mac_universal_binary.html but they don't say anything about were to unzip the folder, so I guess since it is not working it does matter ...

Thanks

Mike Fitzpatrick wrote on Jul 09, 2009

I uploaded a Mac universal binary for CFITSIO to http://iraf.net/ftp/pub/libcfitsio_mac.a

According to the CIRRED instructions you should be able to simply copy this to the cirred directory and compile with e.g.

cl> fc  fixfits.f ./libcfitsio_mac.a


Note that for compilation your will need to define a 'iraf' and 'IRAFARCH' environment variable in your .cshrc file (the 'fc' command is a C-shell script) as e.g.


setenv iraf /iraf/iraf/                      <-- trailing '/' required
setenv IRAFARCH macintel           <-- or 'macosx' for PPC systems


If you stil have problems please post the error message.

-Mike

Barbara Rojas wrote on Jul 09, 2009

hey Mike,

thanks! ... I have a .bashrc file but I just modified the setenv for export =
It seems that now is working :D

Thanks again!

Last post on Jul 09, 2009