Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

isadma's avatar

Install gRPC for PHP

I want to install gRPC for PHP 7.3. I followed Google Cloud documentation (https://cloud.google.com/php/grpc#using-pecl).

I use:

Ubuntu 16.04 x64
Nginx, PHP 7.3
PEAR Version: 1.10.8 

I install:

sudo apt-get install autoconf zlib1g-dev php-dev php-pear
sudo pecl install grpc

But I am getting this error:

No releases available for package "pecl.php.net/grpc"
install failed

I don't know what is wrong.

It is php -v:

PHP 7.3.22-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Sep  9 2020 06:46:12) ( NTS )   
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.22, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.22-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies 

Please, help me.

0 likes
9 replies
isadma's avatar

Ubuntu 16.04 x64 PEAR Version: 1.10.8

isadma's avatar

I realized that my server provider blocked the pecl's website (pecl.php.net). I couldn't ping it.

Are there any alternatives for pecl? Or how can I install a VPN for my server? Or can I copy this gRPC package from another server that I already have installed? Pls help if you have an idea

Sinnbeck's avatar

Why not just contact them and ask if they can unblock it? Perhaps it is just a default that can be turned off.

isadma's avatar

No no, it is a government hosting provider. So they do what they want. And I need to deploy the project only to this server... Please if you have in idea, share with me

isadma's avatar

I tried manually build. When I run this command:

sudo make install

I am getting this error:

Installing via 'make' is no longer supported. Use cmake or bazel instead. Please consult BUILDING.md to get more information.

Can you help me, please? How can I use cmake or bazel to install?

Please or to participate in this conversation.