PHP-EXTENSION-PHP7 How do I install the extension protobuf?

Source: Internet
Author: User
In CentOS 7, how do I install the PHP7 extension protobuf?

I am now installing PHP on my server PROTOBUF installation is not successful!

The extension I'm using is https://github.com/allegro/ph ... ?

Phpize and./configure are all over when compiling and installing, but when it comes to make, an error is made!

Some errors are as follows:

/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 (valu                    e) = 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; 

For advice, what is the reason? is the extended version not keeping up? Or is it because there is no dependency and no installation?

If this expansion pack cannot be installed on PHP7, what extensions can I install?

Reply content:

In CentOS 7, how do I install the PHP7 extension protobuf?

I am now installing PHP on my server PROTOBUF installation is not successful!

The extension I'm using is https://github.com/allegro/ph ... ?

Phpize and./configure are all over when compiling and installing, but when it comes to make, an error is made!

Some errors are as follows:

/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 (valu                    e) = 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; 

For advice, what is the reason? is the extended version not keeping up? Or is it because there is no dependency and no installation?

If this expansion pack cannot be installed on PHP7, what extensions can I install?

Https://github.com/google/pro ...
Is it okay to use the official library directly?

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.