Skip to main content

Unable to install grpc via PECL

Comments

10 comments

  • cPRex Jurassic Moderator
    Hey there! I have run into this one before, and it's an issue with the version of GRPC having a conflict with the GCC libraries on the system. If we check the version of GRPC that will be installed, we'll see this: # /opt/cpanel/ea-php72/root/usr/bin/pecl search grpc WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update Retrieving data...0% Matched packages, channel pecl.php.net: ======================================= Package Stable/(Latest) Local gRPC 1.35.0 (stable) A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.
    If we check the installation requirements here:
    0
  • 4u123
    Great response, thanks for your help!
    0
  • cPRex Jurassic Moderator
    Sure thing!!!
    0
  • fisec77933
    root/tmp/pear/grpc/third_party/boringssl-with-bazel/src/include -I/root/tmp/pear/grpc/third_party/re 2 -I/root/tmp/pear/grpc/third_party/upb -I/root/tmp/pear/grpc/third_party/xxhash -DHAVE_CONFIG_H -st d=c++11 -fno-exceptions -fno-rtti -g -O2 -c /root/tmp/pear/grpc/src/core/ext/filters/client_channel/ backend_metric.cc -fPIC -DPIC -o src/core/ext/filters/client_channel/.libs/backend_metric.o In file included from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy.h:31:0, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.h:24, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.cc:19: /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h: In member function 'virtua l std::string grpc_core::ServerAddressWeightAttribute::ToString() const': /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h:135:41: error: no matching function for call to 'StrFormat(const char [3], const uint32_t&)' return absl::StrFormat("%d", weight_); ^ /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h:135:41: note: candidate is: In file included from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h:28:0, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy.h:31, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.h:24, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.cc:19: /root/tmp/pear/grpc/third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template std::string absl::lts_20210324::StrFormat(absl::lts_20210324::FormatSpec&, const A rgs& ...) ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec& format, ^ /root/tmp/pear/grpc/third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template argume nt deduction/substitution failed: In file included from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/lb_policy.h:31:0, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.h:24, from /root/tmp/pear/grpc/src/core/ext/filters/client_channel/backend_metric.cc:19: /root/tmp/pear/grpc/src/core/ext/filters/client_channel/server_address.h:135:41: note: mismatched types 'absl::lts_20210324::FormatSpec' and 'const char [3]' return absl::StrFormat("%d", weight_); ^ make: *** [src/core/ext/filters/client_channel/backend_metric.lo] Error 1 ERROR: `make' failed
    0
  • fisec77933
    I am facing this error how can I fix any idea?
    0
  • cPRex Jurassic Moderator
    @fisec77933 - it looks like this may be a different issue than the original post. Are you trying this work in CentOS 8?
    0
  • fisec77933
    @cPRex I am trying on centos 7
    0
  • cPRex Jurassic Moderator
    You have to be running CentOS 8 in order for the installation to work properly.
    0
  • fisec77933
    Thank You it's working on centos 8
    0
  • cPRex Jurassic Moderator
    I'm glad that's working well!
    0

Please sign in to leave a comment.