swoole 报错:libhiredis.so.0.13: cannot open shared object file: No such file or directory

2018-04-07 42 0

这是缺少hiredis动态链接库,只需如下修改

安装完hiredis后

mkdir /usr/lib/hiredis
cp libhiredis.so /usr/lib/hiredis #将动态连接库libhiredis.so至/usr/lib/hiredis
mkdir /usr/include/hiredis
cp hiredis.h /usr/include/hiredis
echo '/usr/local/lib' >>/etc/ld.so.conf 
ldconfig

上一篇:没有了

0 条评论