What do I need?
- A C compiler. I would suggest the one that Apple provides as part of Xcode.
- A FORTRAN compiler. The best suggestion is R tools for Mac development. They have a nice fortran compiler (called gfortran).
- X11 for the Mac
Installation Instructions
/usr/bin
and
/usr/local/bin
needs to be in your path. Typing
rehash
in a termainal can help.
Makefile
to use the same fortran compiler you used
for PGPLOT and include the location of PGPLOT.
ld: warning: in lib/env.o, file was built for unsupported file format which is not the architecture being linked (i386)
you are mixing a 32 bit and a 64 bit compiler. Usually, gcc defaults to 64 bit and g77 is 32 bit.
One way to fix this is to make sure EVERYTHING has been compiled correctly. The error message will tell you what particular problem you have.
Undefined symbols for architecture i386:
"_get_obj__", referenced from:
_get_data__ in get_data.o