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-grpc
sudo pecl channel-update pecl.php.net
sudo pecl install grpc protobuf

sudo -i
 cd /etc/php/7.1/mods-available  
echo "extension=protobuf.so" > protobuf.ini
echo "extension=grpc.so" > grpc.ini
phpenmod 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,
grpc
grpc support => enabled
protobuf

Post: 2017-09-26 15:57:05

Views: 1

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