src/主/字节消息.cpp:24:30:致命错误:cms/BytesMessage.h:没有此类文件或目录

2024-10-04 01:28:43 发布

您现在位置:Python中文网/ 问答频道 /正文

有人能告诉我如何安装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

Tags: buildsrcincludemainrunningcppcommandgcc
1条回答
网友
1楼 · 发布于 2024-10-04 01:28:43

听起来像是系统上缺少activemqcpp客户机的安装,或者安装不在python客户机构建可以找到CMS头文件的位置。在

您应该安装activemqcpp客户机,然后构建python客户机。在

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

相关问题 更多 >