我试图在ubuntu上安装节点js客户端的脉冲星客户机。我得到以下错误:
fatal error: pulsar/c/message.h: No such file or directory #include <pulsar/c/message.h>
compilation terminated.
Pulsar.target.mk:116: recipe for target 'Release/obj.target/Pulsar/src/addon.o' failed
make: *** [Release/obj.target/Pulsar/src/addon.o] Error 1文件上说
Pulsar Node.js客户端库基于C++客户端库。按照C++库的说明,通过RPM、Deb或Homebrew包安装二进制文件。
(注意:您不仅需要安装脉冲星客户端库,还需要安装脉冲星客户端开发库)
但是,关于在Ubuntu上安装C++库的说明并不十分清楚。还不清楚如何安装pulsar-client-dev库。
发布于 2020-01-24 14:44:49
您说得对,必须安装C++库。请注意,请确保安装了兼容的C++库。https://github.com/apache/pulsar-client-node#compatibility
要安装C++库ubuntu,这里有一个示例,它来自我们基于Ubuntu的Docker映像构建。https://github.com/kafkaesque-io/pulsar-beam/blob/master/Dockerfile#L29
wget --user-agent=Mozilla -O apache-pulsar-client.deb "https://archive.apache.org/dist/pulsar/pulsar-2.4.1/DEB/apache-pulsar-client.deb"
wget --user-agent=Mozilla -O apache-pulsar-client-dev.deb "https://archive.apache.org/dist/pulsar/pulsar-2.4.1/DEB/apache-pulsar-client-dev.deb"
apt install -y ./apache-pulsar-client.deb
apt install -y ./apache-pulsar-client-dev.debhttps://stackoverflow.com/questions/59894670
复制相似问题