MIA+EWS 2.0 works perfectly fine on the Mac with operating systems up to 10.7. It has not been tested with OS X 10.8 However, you need to take care of two things before installation
c/src/table_col.c, table_gen.c, table_row.c, util.c, util/dft.c
and in c/include/DRfit.h, FLUORfsub.h, FOfit.h, simulate.h
replace malloc.h
by sys/malloc.h
. Alternatively, copy the following lines into a text file and run it in the top-level directory of MIA+EWS (called drsRoot):
#!/bin/bash
#
# This script replace every instance of malloc.h by sys/malloc.h so that
# MIA+EWS compiles on the Mac. It must be run in MIDI's drsRoot directory
# Note that you also need a case-sensitive file-system (e.g. HFS+
# case-sensitive) in order to compile MIA+EWS on a Mac.
#
# Run this script by calling sh macifiy.sh in a bash console.
#
for file in $(grep -lR malloc.h c/*)
do
sed -e "s/malloc.h/sys\/malloc.h/g" $file > tmpfile.tmp
mv tmpfile.tmp $file
echo "Modified: " $file
done