nearzxide10 commented on issue #87: URL: https://github.com/apache/pulsar-client-node/issues/87#issuecomment-1158391286
> @nearzxide10 > > > ``` > > npm ERR! ld: library not found for -lpulsar > > npm ERR! clang: error: linker command failed with exit code 1 (use -v to see invocation) > > ``` > > It seems clang doesn't link the `pulsar` library yet. Temporally, you set `LIBRARY_PATH` environment variable to the libpulsar.dylib path like below. > > ``` > export LIBRARY_PATH=$(brew --prefix)/lib${LIBRARY_PATH+:${LIBRARY_PATH}} > # or simply > export LIBRARY_PATH=$(brew --prefix)/lib > ``` > > I think the root cause of this issue is below. I'll try to fix it. > > https://github.com/apache/pulsar-client-node/blob/d8d24eb5f563869ba0028b8a1ae8646601252a93/binding.gyp#L105-L108 Thanks, it work for me -- 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: dev-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org