Skip to end of metadata
Go to start of metadata

 

Building EMOSLIB or BUFRDC in Mac OS X

At the moment EMOSLIB does not support Mac OS X and we don't test the software on that platform. However, with some small changes it should be possible to get the software at least to compile correctly. We will try to improve the installation in the future so that this complicated process is not needed any more.

$ cd options/
$ cp options_linux options_darwin
$ cd ..
$ cd pbio/
$ ln -s sources.linux sources.darwin
$ cd ..

Then edit the file config/config.darwin_g95R64_i486.in so that it reads

AR      = ar
ARFLAGS = rv
LARGE_FILE =
DEBUG = -g -O2
CC      = gcc
CFLAGS  = $(DEBUG) -DREAL_8 -DTABLE_PATH=\"emos\" $(LOCAL_CFLAGS) $(LARGE_FILE)
FASTCFLAGS = $(CFLAGS)
#
FC      = gfortran
FFLAGS = $(DEBUG) -Dlinux -DUSE_NO_POINTERS -DREAL_8 -DREAL_BIGGER_THAN_INTEGER -DTABLE_PATH=\"emos\"
VECTFFLAGS = $(FFLAGS)
RANLIB  = /usr/bin/ranlib

Then you will also have to edit ./tables_tools/check_tables.sh and change /usr/bin/sh to /bin/sh in the first line.

Answer "y" and "y" to the first two questions in "build_library" and then the compilation should succeed.