Skip to content

Instantly share code, notes, and snippets.

@leftis
Created April 5, 2017 07:56
Show Gist options
  • Save leftis/55766dc90bcb21aa6a98e04e7a998285 to your computer and use it in GitHub Desktop.
Save leftis/55766dc90bcb21aa6a98e04e7a998285 to your computer and use it in GitHub Desktop.
Can't compile psutil
python setup.py build
running build
running build_py
running build_ext
building 'psutil._psutil_osx' extension
gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -isystem /usr/include/i386-linux-gnu -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=522 -DPSUTIL_OSX=1 -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.12-x86_64-2.7/psutil/_psutil_osx.o
In file included from psutil/_psutil_osx.c:15:
/usr/local/include/utmpx.h:21:10: fatal error: 'features.h' file not found
#include <features.h>
^
1 error generated.
error: command 'gcc' failed with exit status 1
make: *** [build] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment