diff --git a/pulsar-client-cpp/README.md b/pulsar-client-cpp/README.md index 582a32412bbd3..6d3eabc4d2a6c 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