You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2018/10/17 00:07:12 UTC

[pulsar] branch master updated: Updated README to build cpp client. (#2798)

This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 9875866  Updated README to build cpp client. (#2798)
9875866 is described below

commit 98758662e607f3f85130ec0c5efc3f3d3cd8f3b4
Author: Zuyu ZHANG <zu...@users.noreply.github.com>
AuthorDate: Tue Oct 16 19:07:07 2018 -0500

    Updated README to build cpp client. (#2798)
---
 pulsar-client-cpp/README.md | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/pulsar-client-cpp/README.md b/pulsar-client-cpp/README.md
index 582a324..6d3eabc 100644
--- a/pulsar-client-cpp/README.md
+++ b/pulsar-client-cpp/README.md
@@ -73,8 +73,8 @@ Run unit tests:
 #### Install all dependencies:
 
 ```shell
-apt-get install g++ cmake libssl-dev libcurl4-openssl-dev liblog4cxx-dev \
-                libprotobuf-dev libboost-all-dev  libgtest-dev \
+apt-get install -y g++ cmake libssl-dev libcurl4-openssl-dev liblog4cxx-dev \
+                libprotobuf-dev libboost-all-dev  libgtest-dev google-mock \
                 libjsoncpp-dev libxml2-utils protobuf-compiler python-setuptools
 ```
 
@@ -88,6 +88,16 @@ sudo cp *.a /usr/lib
 ```
 
 
+#### Compile and install Google Mock:
+
+```shell
+cd /usr/src/gmock
+sudo cmake .
+sudo make
+sudo cp *.a /usr/lib
+```
+
+
 #### Compile Pulsar client library:
 
 ```shell