【问题标题】:Memcache installation on easyapache 4在 easyapache 4 上安装 Memcache
【发布时间】:2017-01-19 07:04:03
【问题描述】:

我刚刚使用 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

你能帮帮我吗?

感谢

【问题讨论】:

    标签: memcached whm


    【解决方案1】:

    您应该安装 cyrus-sasl 库和开发头文件。如您在错误消息 (sasl.h) 中所见,配置脚本正在寻找一个文件。

    您可以通过从 ssh shell(以 root 用户身份)或使用 sudo 发出此命令来安装它们:

    yum -y install cyrus-sasl-lib cyrus-sasl-devel
    

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

    【讨论】:

      猜你喜欢
      • 2016-05-16
      • 2017-02-26
      • 2014-03-25
      • 2015-04-29
      • 2014-07-08
      • 2013-01-03
      • 2016-03-14
      • 2016-12-30
      • 1970-01-01
      相关资源
      最近更新 更多