sudo pecl install memcached
It prompts:
libmemcached directory [no] :
Tried the default value and a lot of different directories and downloaded source. Sure do enjoy these vague error messages.
Where do I find the files it is looking for and what exactly is it looking for?
Searched for hours already and nothing seems to help.
I tried compiling from source, but I ran into a lot of warnings and error messages and to top it off the php-memcached project doesn't seem to contain a configure script.
./configure
"File or directory not found" this is the error. It wants libmemcached directory but I don't know what should be inside of that directory.
I just want it to load in php any way possible. This is on a development VM so it doesn't need to be production ready. Just needs to work.
[Edit]
I have memcache installed but I need memcached instead.
I'm using:
Bitnami lampstack 5.4.29-0 Ubuntu 12.04
[UPDATE]
I found this:
So I recommend to use/install the official memcached extension from PECL and update your application.
https://github.com/kajidai/php-libmemcached
Else you have to install the libmemcached extension from scratch with the following steps:
download from github unpack the file go into the new folder phpize ./configure make install enable it within you php.ini restart you webserver
got to this:
./configure
checking for the location of libmemcached extension... configure: error: Can not find libmemcached headers
More vague error messages.
[UPDATE]
I solved the issue by upgrading to 14.04. Seems that was the fastest route to solve my issue.
Install the "libmemcached-devel" package with yum (RHEL/CentOS/CloudLinux) or the "libmemcached-dev" package with apt-get (Debian/Ubuntu).
Once installed, the default answer of "[no]" is fine because the headers will be in the system-wide default location of "/usr/include/libmemcached-1.0", which the configure script will find on its own.
NOTE: You may be tempted to install "memcached-devel", but it is not the same thing as "libmemcached-devel". Between that, and the subtle naming differences between the "memcache" and "memcached" PECL packages, I suspect there are several developers that need to be smacked.