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
Hi @alfianmalik
I got this issue when running
sudo pecl install grpc protobuf
.The environment is DigitalOcean droplet (the USD 5) with Ubuntu 20.04. It is PHP 7.4.
Any help on this?
TIA
Daniel