ubuntu 17.10 install protobuf + grpc + php

Hello, i am try to install protobuf + grpc + php, here is how i do

sudo apt install php-dev protobuf-compiler protobuf-compiler-grpcsudo pecl channel-update pecl.php.netsudo pecl install grpc protobufsudo -i cd /etc/php/7.1/mods-available  echo \"extension=protobuf.so\" > protobuf.iniecho \"extension=grpc.so\" > grpc.iniphpenmod grpc protobuf    php -r 'phpinfo();' | grep -i \"\\(grpc\\|protobuf\\)\"

Have fun

 

If you success, you will see

/etc/php/7.1/cli/conf.d/20-grpc.ini,/etc/php/7.1/cli/conf.d/20-protobuf.ini,grpcgrpc support => enabledprotobuf

Post: 2017

Views: 665

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by GoSense RSS