如何安装执行 qpid tools

最好的方法是直接https://github.com/matahari/matahari/wiki/Agent-usage-examples

也就是直接yum install qpid-tools

然后就ok啦~ 如不行,则参考下面方法~

 

下载最全的那个包,打开/root/qpid-0.14/tools/src/py,读readme,读到

“To run these programs, please set PYTHONPATH to include:

   qpid/python

   qpid/extras/qmf/src/py ”

首先配置PYTHONPATH,关于其配置在http://blog.sina.com.cn/s/blog_3f07191e0100yx1j.html

然后执行以下两条命令

1. yum install python-qpid-qmf2. /usr/bin/qpid-python-test然后再到tools文件夹和extras文件夹下执行 python setup.py build,就在执行python qpid-config就ok啦

I was trying to set up python scripts to monitor the C++ broker. So I justgot a checkout from the svn HEAD and build the python folder using python"python setup.py build" and set the environment varible PYTHONPATH to pointto the python directory. Then I switch to the $PYTHONPATH/../tools/src/pyand tried to execute -

$python qpid-config --help, which ends up giving me the following error.Traceback (most recent call last): File "qpid-config", line 26, in<module> from qmf.console import SessionImportError: No module named qmf.console

It seems that I am missing a python module but I can not locate where it is.Am I missing something ? Any help is appreciated.

Yes, you need the QMF console module under 'extras', i.e. add extras/qmf/src/py/qmf to your PYTHONPATH.

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值