Skip to content

Mac OSX & anaconda install / README.md #19

@drf5n

Description

@drf5n

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions