Symptoms
You try to install the grpc extension via PECL, but the install fails with an error like this:
/root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:279:49: error: no matching function for
call to 'StrFormat(const char [30], const string&, grpc_core::GrpcLbClientStats*)'
Description
The current version of the grpc extension requires gcc version 4.9 or higher, which is not currently available for CentOS 7. An older version can be specified by adding the version number.
Workaround
Install the extension on a CentOS 8, AlmaLinux 8, or CloudLinux 8 server, or install version 1.33.1:
/opt/cpanel/ea-php##/root/usr/bin/pecl install grpc-1.33.1
Replacing ## with the PHP version you want the extension installed on.