centos memcached报错

本文记录了在服务器端安装libmemcached及php-memcached扩展过程中遇到的问题与解决方法,包括配置选项错误、共享库缺失等问题,并给出了具体的操作步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

服务器端:

make: *** [php_memcached.lo] Error 1

 安装libmemcached

./configure --prefix=/usr/local/libmemcached --with-memcached

 

libmemcached location... configure: error: Unable to find memcached.h under /usr/local/include/libmemcached

 

(3.0.1编译还是一样不能通过,只好根据博主文章中提到的,下载了php-memcached 2.2.0)

 

 

./memcached: error while loading shared libraries: libevent-2.1.so.6: cannot open shared obje

shell代码查看报错:

  LD_DEBUG=libs /usr/local/bin/memcached -v  

然后寻找文件路径:find / -name libevent-2.1.so.6

添加链接:

ln -s /usr/local/lib/libevent-2.1.so.6 /usr/lib64/libevent-2.1.so.6




php-memcached扩展: (php7不支持memcached,需要下载redis)

configure: error: no, libmemcached built with sasl disabled. Run configure with --disable-memcached-sasl or update libmemcached with sasl support

configure时添加--disable-memcached-sasl

./configure --with-php-config=/www/source/php/bin/php-config --disable-memcached-sasl








转载于:https://www.cnblogs.com/jasonLiu2018/articles/10622808.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值