diff options
author | Pavel Odintsov <pavel.odintsov@gmail.com> | 2015-12-16 13:02:30 +0100 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-16 15:06:56 -0800 |
commit | 2648b9bae2d02d268bbda01cf1b13be0d50157c3 (patch) | |
tree | 1cfef36893f04a352f44bd576de4fc13f669d734 /docs/sources/grpc-client.md | |
parent | 1ac95d5869e12173066db862d3f1b9025b6a4d39 (diff) |
Sync C++ examples with recent changes in gRPC and GoGBP API
Diffstat (limited to 'docs/sources/grpc-client.md')
-rw-r--r-- | docs/sources/grpc-client.md | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/docs/sources/grpc-client.md b/docs/sources/grpc-client.md index 9a3fefb0..b2ca0d15 100644 --- a/docs/sources/grpc-client.md +++ b/docs/sources/grpc-client.md @@ -229,18 +229,13 @@ apt-get install -y gcc make autoconf automake git libtool g++ python-all-dev pyt cd /usr/src/ git clone https://github.com/grpc/grpc.git cd grpc +# We are using specific commit because gRPC is under heavy development right now +git checkout e5cdbea1530a99a95fd3d032e7d69a19c61a0d16 git submodule update --init make -j 4 make install prefix=/opt/grpc ``` -Add libs to the system path: -```bash -echo "/opt/grpc/lib" > /etc/ld.so.conf.d/grpc.conf -echo "/opt/protobuf_3.0.0_alpha4/lib" > /etc/ld.so.conf.d/protobuf.conf -ldconfig -``` - We use .so compilation with golang, please use only 1.5 or newer version of Go Lang. Clone this repository and build API example: @@ -260,7 +255,7 @@ make ### Let's run it: ```bash -LD_LIBRARY_PATH=. ./gobgp_api_client +LD_LIBRARY_PATH=".:/opt/grpc/lib:/opt/protobuf_3.0.0_alpha4/lib" ./gobgp_api_client List of announced prefixes for route family: 65537 |