sahlberg / libnfs-python

Python bindings for libnfs
GNU Lesser General Public License v2.1
64 stars 34 forks source link

Cannot install this library on Mac OS High Sierra #31

Open anian2005 opened 5 years ago

anian2005 commented 5 years ago

pip install libnfs fails on mac with the below error

gcc -fno-strict-aliasing -I/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda2/include/python2.7 -c libnfs/libnfs_wrap.c -o build/temp.macosx-10.6-x86_64-2.7/libnfs/libnfs_wrap.o libnfs/libnfs_wrap.c:2969:10: fatal error: 'nfsc/libnfs.h' file not found

include <nfsc/libnfs.h>

^~~~~~~ 1 error generated. error: command 'gcc' failed with exit status 1


Command "/anaconda2/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-install-pKcqdD/libnfs/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/tmp/pip-record-OYInwq/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-pKcqdD/libnfs/

barysevich commented 5 years ago

brew install libnfs