libnfs-python icon indicating copy to clipboard operation
libnfs-python copied to clipboard

Cannot install this library on Mac OS High Sierra

Open anian2005 opened this issue 6 years ago • 1 comments

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/

anian2005 avatar Mar 06 '19 11:03 anian2005

brew install libnfs

barysevich avatar Jun 03 '19 07:06 barysevich