0

有人可以告诉我如何安装 pyactivemq 吗?

我按照http://code.google.com/p/pyactivemq/wiki/Building的“Fedora Core”说明进行操作

[mmopuru@mmopuru pyactivemq]$ python setup.py build
running build
running build_ext
building 'pyactivemq' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_NO_PY_SIGNATURES=1 -DPYACTIVEMQ_ENABLE_DOCSTRINGS=0 
    -I/opt/activemq-cpp-3.0.1/include/activemq-cpp-3.0.1 -I/zyme_shared/zyme_apps/zymenet/dev/python2.6/include/python2.6 -c src/main/BytesMessage.cpp 
    -o build/temp.linux-i686-2.6/src/main/BytesMessage.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
src/main/BytesMessage.cpp:24:30: fatal error: cms/BytesMessage.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
4

1 回答 1

0

听起来您缺少系统上 ActiveMQ-CPP 客户端的安装,或者安装不在 python 客户端构建可以找到 CMS 头文件的位置。

您应该安装 ActiveMQ-CPP 客户端,然后构建 python 客户端。

自从我构建那个 python 东西以来已经有一段时间了。如果我没记错的话,构建脚本中有一些硬编码的版本号,因此您可能需要查看构建文件并更改内容以匹配您的系统和安装的版本。

于 2014-02-12T17:14:56.120 回答