Skip to content

Instantly share code, notes, and snippets.

@ydp
Created June 11, 2018 10:23
Show Gist options
  • Save ydp/29aaaa62635e40a71634588db9d3c1ac to your computer and use it in GitHub Desktop.
Save ydp/29aaaa62635e40a71634588db9d3c1ac to your computer and use it in GitHub Desktop.
grpc cpp cannot find pkg_config
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export PATH=$PATH:$DIR/bins/opt:$DIR/bins/opt/protobuf
export CPATH=$DIR/include:$DIR/third_party/protobuf/src
export LIBRARY_PATH=$DIR/libs/opt:$DIR/libs/opt/protobuf
export PKG_CONFIG_PATH=$DIR/libs/opt/pkgconfig:$DIR/third_party/protobuf
export LD_LIBRARY_PATH=$DIR/libs/opt
@ydp
Copy link
Author

ydp commented Jun 11, 2018

[root@localhost grpc]# source actviate.sh
[root@localhost grpc]# cd examples/cpp/helloworld/
[root@localhost helloworld]# make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment