PrincetonUniversity / DP_GP_cluster

BSD 3-Clause "New" or "Revised" License
73 stars 25 forks source link

installation Mac Monterey #39

Open anke-king opened 4 months ago

anke-king commented 4 months ago

Im trying to install this package and get the following error:

copying DP_GP/plot.py -> build/lib.macosx-10.6-x86_64-2.7/DP_GP copying DP_GP/init.py -> build/lib.macosx-10.6-x86_64-2.7/DP_GP copying DP_GP/utils.py -> build/lib.macosx-10.6-x86_64-2.7/DP_GP running build_ext skipping 'DP_GP/core.c' Cython extension (up-to-date) skipping 'DP_GP/cluster_tools.c' Cython extension (up-to-date) building 'DP_GP.core' extension creating build/temp.macosx-10.6-x86_64-2.7 creating build/temp.macosx-10.6-x86_64-2.7/DP_GP gcc -fno-strict-aliasing -I/Users/xx/miniconda3/envs/dpgp/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/xx/miniconda3/envs/dpgp/lib/python2.7/site-packages/numpy/core/include -I/Users/ankeking/miniconda3/envs/dpgp/include/python2.7 -c DP_GP/core.c -o build/temp.macosx-10.6-x86_64-2.7/DP_GP/core.o In file included from /Users/xx/miniconda3/envs/dpgp/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0, from /Users/xx/miniconda3/envs/dpgp/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34, from /Users/xx/miniconda3/envs/dpgp/include/python2.7/Python.h:19, from DP_GP/core.c:4: /Users/ankeking/miniconda3/envs/dpgp/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory

include_next / recurse down to the real one /

if anyone has a similar problem I would be so grateful for any advice on how to fix this!! thanks!!

anke-king commented 4 months ago

Okay, in case anyone else has this problem and after hours of trying everything I finally found a solution on how to fix this for me: install gcc with home-brew install Fortran with conda install -c conda-forge gfortran_osx-64
install gcclib with conda install conda-forge::libgcc

after doing this, the installation finally worked!