Skip to content

Instantly share code, notes, and snippets.

@sundayguru
Last active April 30, 2021 08:37
Show Gist options
  • Save sundayguru/c370211bad2f45d155c7e7a139aed431 to your computer and use it in GitHub Desktop.
Save sundayguru/c370211bad2f45d155c7e7a139aed431 to your computer and use it in GitHub Desktop.
'libmemcached/memcached.h' file not found error
Error: src/_pylibmcmodule.h:42:10: fatal error: 'libmemcached/memcached.h' file not found
#include <libmemcached/memcached.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
Solution:
brew install libmemcached
If Error: You must `brew link libevent memcached` before libmemcached can be installed
RUN:
brew link libevent memcached
If Error: Could not symlink share/man/man3/BEV_ERROR.3
/usr/local/share/man/man3 is not writable.
RUN:
sudo chmod 777 /usr/local/share/man/man1
sudo chmod 777 /usr/local/share/man/man3
THEN:
brew install libmemcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment