-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I installed it on my mac with
conda create -n pycnal numpy scipy matplotlib basemap netcdf4 ipython
conda install -c conda-forge netcdf-fortran
git clone https://github.com/ESMG/PyCNAL_legacy.git
cd PyCNAL_legacy
Then followed most of the directions on the https://github.com/ESMG/PyCNAL_legacy page, but then needed these lines in my extern/scrip/source/makefile:
...
NC_CONFIG = nc-config
LIBDIR = $(shell $(NC_CONFIG) --prefix)/lib
INCDIR = $(shell $(NC_CONFIG) --prefix)/include
SRCDIR = .
PREFIX = /usr/local
COMPILE = gfortran
FLAGS = -g -fdefault-real-8 -ffixed-form -O2 -fPIC
LIB = $(shell $(NC_CONFIG) --flibs)
LIB = -L${LIBDIR} -lnetcdff -lnetcdf
The extra hard-coded flags on the main page do not apply to Mac OSX.
I've not tested it yet, but the thing seemed to compile OK.
Metadata
Metadata
Assignees
Labels
No labels