Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OSX & anaconda install / README.md #19

Open
drf5n opened this issue Jan 23, 2018 · 0 comments
Open

Mac OSX & anaconda install / README.md #19

drf5n opened this issue Jan 23, 2018 · 0 comments

Comments

@drf5n
Copy link

drf5n commented Jan 23, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant