在centos 7 中,如何安装 php7 的扩展 protobuf?
我现在在我的服务器上安装 php 的 protobuf 安装不成功!
我使用的扩展是 https://github.com/allegro/ph... ?
在编译安装的时候 phpize 和 ./configure 都过了,但是到了 make 的时候就报错!
部分错误如下:
立即学习“PHP免费学习笔记(深入)”;
<code>/home/lvyun/php-protobuf/protobuf.c: In function ?.b_parse_field_value
/home/lvyun/php-protobuf/protobuf.c:1004:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_DOUBLE;
^
/home/lvyun/php-protobuf/protobuf.c:1009:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_LONG;
^
/home/lvyun/php-protobuf/protobuf.c:1014:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_LONG;
^
/home/lvyun/php-protobuf/protobuf.c:1019:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_DOUBLE;
^
/home/lvyun/php-protobuf/protobuf.c:1024:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_LONG;
^
/home/lvyun/php-protobuf/protobuf.c:1029:22: error: ?.S_BOOL?.undeclause in this function)
Z_TYPE_P(value) = IS_BOOL;
^
/home/lvyun/php-protobuf/protobuf.c:1034:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_LONG;</code>求教,这是什么原因?是 扩展的版本没有跟上吗?还是因为有什么依赖没有安装?
如果这个扩展包不能安装在 php7 上,那还有什么扩展可以安装?
在centos 7 中,如何安装 php7 的扩展 protobuf?
我现在在我的服务器上安装 php 的 protobuf 安装不成功!
我使用的扩展是 https://github.com/allegro/ph... ?
在编译安装的时候 phpize 和 ./configure 都过了,但是到了 make 的时候就报错!
部分错误如下:
立即学习“PHP免费学习笔记(深入)”;
<code>/home/lvyun/php-protobuf/protobuf.c: In function ?.b_parse_field_value
/home/lvyun/php-protobuf/protobuf.c:1004:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_DOUBLE;
^
/home/lvyun/php-protobuf/protobuf.c:1009:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_LONG;
^
/home/lvyun/php-protobuf/protobuf.c:1014:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_LONG;
^
/home/lvyun/php-protobuf/protobuf.c:1019:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_DOUBLE;
^
/home/lvyun/php-protobuf/protobuf.c:1024:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_LONG;
^
/home/lvyun/php-protobuf/protobuf.c:1029:22: error: ?.S_BOOL?.undeclause in this function)
Z_TYPE_P(value) = IS_BOOL;
^
/home/lvyun/php-protobuf/protobuf.c:1034:20: error: lvalue required as leof assignment
Z_TYPE_P(value) = IS_LONG;</code>求教,这是什么原因?是 扩展的版本没有跟上吗?还是因为有什么依赖没有安装?
如果这个扩展包不能安装在 php7 上,那还有什么扩展可以安装?
https://github.com/google/pro...
直接使用官方库不行吗?
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号