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: 1970.01.01 08:33

Views: 546

Edit blog

Follow me: @twitter @github
Scan QR code and Donate me via alipay:
donate me via alipay
Donate me Bitcoin:136MYemy5QmmBPLBLr1GHZfkES7CsoG4Qh
Powered by josense, Last updated: 2019-04-15 09:45 RSS