Biboroku

Installing HOTPANTS 5.1.10 on Mac OS X Leopard

Written by Taro Sato on . Tagged: astro sysadmin OS X

You must love the name, but what the software does is far from sultry; it’s a piece of geekware.

Anyways, I needed to edit files when I install HOTPANTS, photometric alignment utility by Andrew Becker. Here is my installation note before I forget.

HOTPANTS requires CFITSIO to be already installed. On Leopard I use Scisoft OS X, so I don’t have to install CFITSIO separately. Otherwise you have to install CFITSIO first.

Download the tarball and expand it into a temporary directory.

First, you need to delete (or comment out) the line which reads

#include<malloc.h>

from all *.c source code files.

Then modify Makefile. To link CFITSIO properly, modify CFITSIOINCDIR and LIBDIR:

CFITSIOINCDIR=/Applications/scisoft/i386/Packages/cfitsio/include
LIBDIR=/Applications/scisoft/i386/Packages/cfitsio/lib

This is fine if you have Scisoft OS X. If you installed CFITSIO elsewhere, you have to find the paths yourself.

You should also remove the -pedantic-errors option from COPTS so that the line reads like:

COPTS= -funroll-loops -O3 -ansi -Wall -I$(CFITSIOINCDIR)

Then run make within the same directory.

That’s it. You might wish to copy the binaries hotpants, extractkern, and maskim to one of those bin directories in your PATH.

Building 64-bit HOTPANTS

The 64-bit version of HOTPANTS is twice as sultry, I need to try it. The change is that you need to first build 64-bit version of CFITSIO.

The procedure is basically similar to the one above, with a couple of changes:

CFITSIOINCDIR=/usr/local/src/cfitsio/cfitsio/include
LIBDIR=/usr/local/src/cfitsio/cfitsio/lib

Basically you need to point them to the locations where you installed the 64-bit CFITSIO; see the CFITSIO installation note using the link above. Another change is in the compiler options:

COPTS= -m64 -funroll-loops -O3 -ansi -Wall -I$(CFITSIOINCDIR)

These should be the only difference.

comments powered by Disqus