Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Failed to build due to checking for libmemcached location... configure: error: Unable to find memcached.h #140
I was trying to build php-memcached,
got the following error
It's looking for
I have downloaded libmemcached-1.0.16 and built it.
find ./ -name memcached.h
None of them are under /include/ directory. Did I miss anything obvious?
I was just attempting to do the same on CentOS:
Which errors with:
It's definitely in there. That memcached.h is referencing libmemcached-1.0/ and if I point it there, same story.
Actually.... now I remove the --with-libmemcached-dir option it suddenly works
If you compile a module from source, you have to installed all required headers, in this case you have to install "libmemcached-dev" package which contains the required headers.
this worked for me.
you should put the absolute path of your libmemcached. E.g:
The script config (when you perfom ./config ) contain this line: