错误:请指定libmemcached标头所在的前缀

时间:2013-11-14 21:00:43

标签: memcached pear pecl

我正在尝试使用Pecl和Pear安装memcached。当我运行此命令时

Abrams-MacBook-Air-3:recurly abramhandler$ sudo pecl install memcached --with-libememcached-dir=/usr/lib/libmemcached-1.0.17/libmemcached

我收到以下错误

checking for libmemcached location... configure: error: memcached support requires libmemcached 1.0.x. Use --with-libmemcached-dir=<DIR> to specify the prefix where libmemcached headers and library are located
ERROR: `/private/tmp/pear/install/memcached/configure' failed

这个目录包含很多头文件,但似乎可能是错误的?

/usr/lib/libmemcached-1.0.17/libmemcached

memcached要查找哪些标头?我应该在install命令中包含哪个目录?

1 个答案:

答案 0 :(得分:1)

pecl在编译扩展时不允许传递配置参数。

您必须自己提取存档并自行完成安装。说明可在http://cweiske.de/tagebuch/phpfarm-install-extensions.htm

上找到