tisonkun commented on code in PR #18080: URL: https://github.com/apache/pulsar/pull/18080#discussion_r997630203
########## site2/docs/client-libraries-cpp.md: ########## @@ -25,6 +25,31 @@ Use [Homebrew](http://brew.sh/) to install the latest tagged version with the li brew install libpulsar ``` +Get the installation path of libpulsar + +```shell +brew info libpulsar +``` + +Set the variable `PULSAR_CPP_DIR` with the `pulsar-client-cpp` path in a mac command tool. + +```shell +# for example +## Intel x86_64 +export PULSAR_CPP_DIR=/usr/local/Cellar/libpulsar/2.9.1_1 Review Comment: I think we can unify these two case by: ```bash export PULSAR_CPP_DIR=$(brew --prefix libpulsar) ``` ########## site2/docs/client-libraries-cpp.md: ########## @@ -25,6 +25,31 @@ Use [Homebrew](http://brew.sh/) to install the latest tagged version with the li brew install libpulsar ``` +Get the installation path of libpulsar + +```shell +brew info libpulsar +``` Review Comment: Then we can remove this section. ########## site2/docs/client-libraries-cpp.md: ########## @@ -25,6 +25,31 @@ Use [Homebrew](http://brew.sh/) to install the latest tagged version with the li brew install libpulsar ``` +Get the installation path of libpulsar + +```shell +brew info libpulsar +``` + +Set the variable `PULSAR_CPP_DIR` with the `pulsar-client-cpp` path in a mac command tool. + +```shell +# for example +## Intel x86_64 +export PULSAR_CPP_DIR=/usr/local/Cellar/libpulsar/2.9.1_1 + +## Apple Silicon and Homebrew since 3.0.0 +## cf. https://brew.sh/2021/02/05/homebrew-3.0.0/ +export PULSAR_CPP_DIR=/opt/homebrew/Cellar/libpulsar/2.9.1_1 +``` + +Set the variable `LIBRARY_PATH` with `lib` of the `pulsar-client-cpp` path. + +```shell +# for example +export LIBRARY_PATH=/opt/homebrew/Cellar/libpulsar/2.9.1_1/lib Review Comment: ```suggestion export LIBRARY_PATH=$(brew --prefix libpulsar)/lib ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
