今天中午同事在安装msgpack-2.0.2时报错,
检查后发现我的php版本是5.6的版本,不支持Zend/zend_smart
并且官方文档也指定了版本要求最低要求7.0
使用pecl安装方式,直接提升需要使用php7.0以上的版本.
[root@web msgpack-2.0.2]# pecl install msgpack
pecl/msgpack requires PHP (version >= 7.0.0), installed version is 5.6.30
No valid packages found
install failed
编译安装时make报错
In file included from /root/msgpack-2.0.2/msgpack.c:16:0:
/root/msgpack-2.0.2/php_msgpack.h:4:56: fatal error: Zend/zend_smart_str.h: No such file or directory
#include "Zend/zend_smart_str.h" /* for smart_string */
^
compilation terminated.
make: *** [msgpack.lo] Error 1
除了升级php7或者安装低版本的msgpack暂时还不知道解决办法!