In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to compile and install grpc in Centos7.3. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Related tool yum install-y gcc gcc-c++ autoconf libtoolyum groupinstall-y "Development Tools" download source code git clone https://github.com/grpc/grpc.gitcd grpcgit submodule update-- init compilation and installation protobufcd third_party/protobuf/./autogen.sh./configuremakemake installldconfig # refresh shared library cache.which protocprotoc-- version
You need to download the Google Code code in autogen.sh and ensure that it can be accessed.
Compile and install grpccd.. /.. make
Question:
/ root/git/grpc/bins/opt/grpc_cpp_plugin: error while loading shared libraries: libprotoc.so.15: cannot open shared object file: No such file or directory
Solution:
Echo $LD_LIBRARY_PATHexport LD_LIBRARY_PATH=/usr/local/lib/:/root/git/grpc/libs/opt/makemake install Test C++ Democd examples/cpp/helloworldmake
Question:
Package protobuf was not found in the pkg-config search path.Perhaps you should add the directory containing `protobuf.pc'to the PKG_CONFIG_PATH environment variableNo package 'protobuf' found
Solution:
Echo $PKG_CONFIG_PATHexport PKG_CONFIG_PATH=/root/git/grpc/libs/opt/pkgconfig:/root/git/grpc/third_party/protobufmake./greeter_server &. / greeter_client above is how to compile and install grpc in the Centos7.3 shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.