0

我正在尝试构建和安装 pymqi,但是在尝试编译它时遇到了很多错误。

我做了以下事情:

获取并安装 MinGW gcc

创建 libpython2?.a

使用说明来自:https ://pythonhosted.org/pymqi/mingw32.html

当我尝试使用以下方法构建它时:setup.py build -cmingw32 client 我得到一个未定义引用的列表。下面是一些例子

build\temp.win32-2.6\Release\pymqe.o:pymqe.c:(.text+0x25e): undefined  reference to `MQINQMP'
build\temp.win32-2.6\Release\pymqe.o:pymqe.c:(.text+0x463): undefined reference to `MQSETMP'

最后,我还收到以下错误:

c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: build\temp
.win32-2.6\Release\pymqe.o: bad reloc address 0x0 in section `.data'
collect2.exe: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

我在用:

  • 蟒蛇 26
  • gcc 版本 4.8.1 (GCC)

任何线索和帮助将不胜感激:)

4

1 回答 1

0

您需要在进行构建的服务器上安装 WebSphere MQ v7.0 或更高版本。另外,你在安装 MQ 时,是否包含了“开发工具包”?它是可选的,您需要选择它。

于 2015-07-16T19:01:04.763 回答