在easyapache上安装Memcache 4

时间:2016-09-11 20:12:01

标签: memcached whm

我刚安装了带有easyapache 4的WHM v58(最新版本),当我尝试通过软件安装memcache =>模块安装程序=> PHP Pecl我遇到了问题。

当我启动memcached(2.2.0) - 用于通过libmemcached库与memcached连接的PHP扩展时 - 我在检查sasl时遇到错误。 我需要使用选项“--disable-memcached-sasl”运行安装,但我不知道如何在WHM中执行此操作?

checking for sasl/sasl.h... no
configure: error: no, sasl.h is not available. Run configure with --disable-    memcached-sasl to disable this check
ERROR: `/opt/cpanel/ea-php56/root/usr/var/tmp/php-pear/memcached/configure --    with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config --with-libmemcached-    dir=no' failed

你能帮助我吗?

THKS

1 个答案:

答案 0 :(得分:0)

您应该安装cyrus-sasl库和开发标头。正如您在错误消息(sasl.h)中看到的那样,configure脚本正在查找文件。

您可以通过从ssh shell(以root身份)或sudo:

发出此命令来安装它们
yum -y install cyrus-sasl-lib cyrus-sasl-devel

安装后尝试重新安装memcached。您还需要安装memcached守护程序才能使用它(如果您尚未安装它)。