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

grpc support => enabled

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