Difference between revisions of "How to install and build C++ gRPC"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<font size="+2"> | <font size="+2"> | ||
− | Here are the official instructions for [https://grpc.io/docs/languages/cpp/quickstart/#install-grpc downloading and building grpc] | + | ===Here are the official instructions for [https://grpc.io/docs/languages/cpp/quickstart/#install-grpc downloading and building grpc]=== |
− | |||
− | + | ===However, the following is a more relevant version of how grpc was installed on the ejfat nodes=== | |
+ | : '''Setup some environmental variables (assuming bash)''' | ||
<blockquote> | <blockquote> | ||
− | <pre | + | <pre> |
export GRPC_INSTALL_DIR=/daqfs/gRPC/installation | export GRPC_INSTALL_DIR=/daqfs/gRPC/installation | ||
export PATH="$GRPC_INSTALL_DIR/bin:$PATH" | export PATH="$GRPC_INSTALL_DIR/bin:$PATH" | ||
Line 12: | Line 12: | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
− | ::The alternative is to run a provided bash setup script which does the same thing | + | :: The alternative is to run a provided bash setup script which does the same thing |
− | :<pre>/daqfs/gRPC/setupgrpc</pre> | + | :: <pre>/daqfs/gRPC/setupgrpc</pre> |
− | + | : '''Clone the repository'''<pre>git clone --recurse-submodules -b v1.50 --depth 1 --shallow-submodules https://github.com/grpc/grpc</pre> | |
− | + | : '''Build the package''' | |
+ | <blockquote> | ||
+ | <pre> | ||
+ | cd grpc | ||
+ | mkdir -p cmake/build | ||
+ | </pre> | ||
+ | </blockquote> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</font> | </font> |
Revision as of 18:45, 16 December 2022
Here are the official instructions for downloading and building grpc
However, the following is a more relevant version of how grpc was installed on the ejfat nodes
- Setup some environmental variables (assuming bash)
export GRPC_INSTALL_DIR=/daqfs/gRPC/installation export PATH="$GRPC_INSTALL_DIR/bin:$PATH" export LD_LIBRARY_PATH="$GRPC_INSTALL_DIR/lib:$LD_LIBRARY_PATH"
- The alternative is to run a provided bash setup script which does the same thing
/daqfs/gRPC/setupgrpc
- Clone the repository
git clone --recurse-submodules -b v1.50 --depth 1 --shallow-submodules https://github.com/grpc/grpc
- Build the package
cd grpc mkdir -p cmake/build