Python 2.7.12(32位)包pymqi-1.5.4安装

时间:2016-09-22 06:30:54

标签: python linux ibm-mq

我一直在尝试在我的Linux机器中配置pymqi-1.5.4。但我收到以下错误:

Building PyMQI client 32bits
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pymqi
copying pymqi/__init__.py -> build/lib.linux-x86_64-2.7/pymqi
copying pymqi/CMQC.py -> build/lib.linux-x86_64-2.7/pymqi
copying pymqi/CMQCFC.py -> build/lib.linux-x86_64-2.7/pymqi
copying pymqi/CMQXC.py -> build/lib.linux-x86_64-2.7/pymqi
copying pymqi/CMQZC.py -> build/lib.linux-x86_64-2.7/pymqi
running build_ext
building 'pymqi.pymqe' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/pymqi
gcc -pthread -fno-strict-aliasing -m32 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPYQMI_SERVERBUILD=0 -I/opt/mqm/inc -I/prodlib/TSPSG/GFC/miniconda2/include/python2.7 -c pymqi/pymqe.c -o build/temp.linux-x86_64-2.7/pymqi/pymqe.o
pymqi/pymqe.c:78:18: error: cmqc.h: No such file or directory
pymqi/pymqe.c:79:19: error: cmqxc.h: No such file or directory
In file included from /usr/include/features.h:385,
                 from /usr/include/limits.h:27,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/limits.h:122,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/limits.h:11,
                 from /prodlib/TSPSG/GFC/miniconda2/include/python2.7/Python.h:19,
                 from pymqi/pymqe.c:108:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
pymqi/pymqe.c: In function ‘pymqe_MQCONN’:
pymqi/pymqe.c:165: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:165: error: (Each undeclared identifier is reported only once
pymqi/pymqe.c:165: error: for each function it appears in.)
pymqi/pymqe.c:165: error: expected ‘;’ before ‘handle’
pymqi/pymqe.c:166: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:166: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:172: warning: implicit declaration of function ‘MQCONN’
pymqi/pymqe.c:172: error: ‘handle’ undeclared (first use in this function)
pymqi/pymqe.c:172: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:172: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQCONNX’:
pymqi/pymqe.c:197: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:197: error: expected ‘;’ before ‘handle’
pymqi/pymqe.c:198: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:198: error: expected ‘;’ before ‘comp_code’
pymqi/pymqe.c:201: error: ‘MQCNO’ undeclared (first use in this function)
pymqi/pymqe.c:201: error: expected ‘;’ before ‘cno’
pymqi/pymqe.c:207: error: ‘MQCNO_NONE’ undeclared (first use in this function)
pymqi/pymqe.c:225: error: ‘MQCD_CURRENT_LENGTH’ undeclared (first use in this function)
pymqi/pymqe.c:237: error: ‘cno’ undeclared (first use in this function)
pymqi/pymqe.c:237: error: ‘MQCNO_VERSION_2’ undeclared (first use in this function)
pymqi/pymqe.c:240: error: ‘MQCSP’ undeclared (first use in this function)
pymqi/pymqe.c:240: error: expected ‘;’ before ‘csp’
pymqi/pymqe.c:247: error: ‘csp’ undeclared (first use in this function)
pymqi/pymqe.c:247: error: ‘MQCSP_AUTH_USER_ID_AND_PWD’ undeclared (first use in this function)
pymqi/pymqe.c:254: error: ‘MQCD’ undeclared (first use in this function)
pymqi/pymqe.c:254: error: expected expression before ‘)’ token
pymqi/pymqe.c:255: error: expected ‘;’ before ‘options’
pymqi/pymqe.c:259: warning: implicit declaration of function ‘MQCONNX’
pymqi/pymqe.c:259: error: ‘handle’ undeclared (first use in this function)
pymqi/pymqe.c:259: error: ‘comp_code’ undeclared (first use in this function)
pymqi/pymqe.c:259: error: ‘comp_reason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQDISC’:
pymqi/pymqe.c:274: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:274: error: expected ‘;’ before ‘handle’
pymqi/pymqe.c:275: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:275: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:285: error: ‘handle’ undeclared (first use in this function)
pymqi/pymqe.c:285: error: expected ‘;’ before ‘lHandle’
pymqi/pymqe.c:288: warning: implicit declaration of function ‘MQDISC’
pymqi/pymqe.c:288: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:288: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQOPEN’:
pymqi/pymqe.c:312: error: ‘MQOD’ undeclared (first use in this function)
pymqi/pymqe.c:312: error: ‘qDescP’ undeclared (first use in this function)
pymqi/pymqe.c:315: error: ‘MQHOBJ’ undeclared (first use in this function)
pymqi/pymqe.c:315: error: expected ‘;’ before ‘qHandle’
pymqi/pymqe.c:316: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:316: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:325: error: expected expression before ‘)’ token
pymqi/pymqe.c:326: error: ‘MQOD_CURRENT_LENGTH’ undeclared (first use in this function)
pymqi/pymqe.c:331: warning: implicit declaration of function ‘MQOPEN’
pymqi/pymqe.c:331: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:331: error: expected ‘)’ before ‘lQmgrHandle’
pymqi/pymqe.c:333: error: ‘qHandle’ undeclared (first use in this function)
pymqi/pymqe.c:334: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:334: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQCLOSE’:
pymqi/pymqe.c:348: error: ‘MQHOBJ’ undeclared (first use in this function)
pymqi/pymqe.c:348: error: expected ‘;’ before ‘qHandle’
pymqi/pymqe.c:349: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:349: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:359: error: ‘qHandle’ undeclared (first use in this function)
pymqi/pymqe.c:359: error: expected ‘;’ before ‘lqHandle’
pymqi/pymqe.c:362: warning: implicit declaration of function ‘MQCLOSE’
pymqi/pymqe.c:362: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:362: error: expected ‘)’ before ‘lQmgrHandle’
pymqi/pymqe.c:364: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:364: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘mqputN’:
pymqi/pymqe.c:373: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:373: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:376: error: ‘MQMD’ undeclared (first use in this function)
pymqi/pymqe.c:376: error: ‘mDescP’ undeclared (first use in this function)
pymqi/pymqe.c:379: error: ‘MQPMO’ undeclared (first use in this function)
pymqi/pymqe.c:379: error: ‘pmoP’ undeclared (first use in this function)
pymqi/pymqe.c:384: error: ‘MQOD’ undeclared (first use in this function)
pymqi/pymqe.c:384: error: ‘qDescP’ undeclared (first use in this function)
pymqi/pymqe.c:406: error: ‘MQOD_CURRENT_LENGTH’ undeclared (first use in this function)
pymqi/pymqe.c:409: error: expected expression before ‘)’ token
pymqi/pymqe.c:415: error: expected expression before ‘)’ token
pymqi/pymqe.c:417: error: ‘MQPMO_CURRENT_LENGTH’ undeclared (first use in this function)
pymqi/pymqe.c:420: error: expected expression before ‘)’ token
pymqi/pymqe.c:423: warning: implicit declaration of function ‘MQPUT’
pymqi/pymqe.c:423: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:423: error: expected ‘)’ before ‘lQmgrHandle’
pymqi/pymqe.c:428: warning: implicit declaration of function ‘MQPUT1’
pymqi/pymqe.c:428: error: expected ‘)’ before ‘lQmgrHandle’
pymqi/pymqe.c:433: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:433: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQGET’:
pymqi/pymqe.c:506: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:506: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:509: error: ‘MQMD’ undeclared (first use in this function)
pymqi/pymqe.c:509: error: ‘mDescP’ undeclared (first use in this function)
pymqi/pymqe.c:512: error: ‘MQGMO’ undeclared (first use in this function)
pymqi/pymqe.c:512: error: ‘gmoP’ undeclared (first use in this function)
pymqi/pymqe.c:514: error: expected ‘;’ before ‘actualLength’
pymqi/pymqe.c:529: error: expected expression before ‘)’ token
pymqi/pymqe.c:534: error: expected expression before ‘)’ token
pymqi/pymqe.c:541: error: ‘actualLength’ undeclared (first use in this function)
pymqi/pymqe.c:543: warning: implicit declaration of function ‘MQGET’
pymqi/pymqe.c:543: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:543: error: expected ‘)’ before ‘lQmgrHandle’
pymqi/pymqe.c:560: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:560: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQBEGIN’:
pymqi/pymqe.c:577: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:577: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:578: error: ‘MQBO’ undeclared (first use in this function)
pymqi/pymqe.c:578: error: expected ‘;’ before ‘beginOpts’
pymqi/pymqe.c:586: warning: implicit declaration of function ‘MQBEGIN’
pymqi/pymqe.c:586: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:586: error: expected ‘)’ before ‘lHandle’
pymqi/pymqe.c:588: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:588: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQCMIT’:
pymqi/pymqe.c:601: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:601: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:609: warning: implicit declaration of function ‘MQCMIT’
pymqi/pymqe.c:609: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:609: error: expected ‘)’ before ‘lHandle’
pymqi/pymqe.c:611: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:611: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQBACK’:
pymqi/pymqe.c:623: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:623: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:631: warning: implicit declaration of function ‘MQBACK’
pymqi/pymqe.c:631: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:631: error: expected ‘)’ before ‘lHandle’
pymqi/pymqe.c:633: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:633: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQINQ’:
pymqi/pymqe.c:655: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:655: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:656: error: expected ‘;’ before ‘selectorCount’
pymqi/pymqe.c:657: error: expected ‘;’ before ‘selectors’
pymqi/pymqe.c:658: error: expected ‘;’ before ‘intAttrCount’
pymqi/pymqe.c:659: error: expected ‘;’ before ‘intAttrs’
pymqi/pymqe.c:660: error: expected ‘;’ before ‘charAttrCount’
pymqi/pymqe.c:661: error: ‘MQCHAR’ undeclared (first use in this function)
pymqi/pymqe.c:661: error: expected ‘;’ before ‘charAttrs’
pymqi/pymqe.c:669: error: ‘selectors’ undeclared (first use in this function)
pymqi/pymqe.c:669: error: expected ‘;’ before ‘lSelectors’
pymqi/pymqe.c:671: error: ‘MQIA_FIRST’ undeclared (first use in this function)
pymqi/pymqe.c:671: error: ‘MQIA_LAST’ undeclared (first use in this function)
pymqi/pymqe.c:672: error: ‘intAttrCount’ undeclared (first use in this function)
pymqi/pymqe.c:674: error: ‘charAttrCount’ undeclared (first use in this function)
pymqi/pymqe.c:674: error: ‘charAttrs’ undeclared (first use in this function)
pymqi/pymqe.c:679: warning: implicit declaration of function ‘MQINQ’
pymqi/pymqe.c:679: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:679: error: expected ‘)’ before ‘lQmgrHandle’
pymqi/pymqe.c:684: error: ‘intAttrs’ undeclared (first use in this function)
pymqi/pymqe.c:684: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:684: error: ‘compReason’ undeclared (first use in this function)
pymqi/pymqe.c: In function ‘pymqe_MQSET’:
pymqi/pymqe.c:701: error: ‘MQLONG’ undeclared (first use in this function)
pymqi/pymqe.c:701: error: expected ‘;’ before ‘compCode’
pymqi/pymqe.c:702: error: expected ‘;’ before ‘selectorCount’
pymqi/pymqe.c:703: error: expected ‘;’ before ‘selectors’
pymqi/pymqe.c:704: error: expected ‘;’ before ‘intAttrCount’
pymqi/pymqe.c:705: error: expected ‘;’ before ‘intAttrs’
pymqi/pymqe.c:706: error: expected ‘;’ before ‘charAttrCount’
pymqi/pymqe.c:707: error: ‘MQCHAR’ undeclared (first use in this function)
pymqi/pymqe.c:707: error: expected ‘;’ before ‘charAttrs’
pymqi/pymqe.c:715: error: ‘selectors’ undeclared (first use in this function)
pymqi/pymqe.c:715: error: expected ‘;’ before ‘lSelectors’
pymqi/pymqe.c:717: error: ‘MQIA_FIRST’ undeclared (first use in this function)
pymqi/pymqe.c:717: error: ‘MQIA_LAST’ undeclared (first use in this function)
pymqi/pymqe.c:722: error: ‘intAttrs’ undeclared (first use in this function)
pymqi/pymqe.c:723: error: ‘intAttrCount’ undeclared (first use in this function)
pymqi/pymqe.c:729: error: ‘charAttrs’ undeclared (first use in this function)
pymqi/pymqe.c:730: error: ‘charAttrCount’ undeclared (first use in this function)
pymqi/pymqe.c:730: error: expected ‘;’ before ‘strlen’
pymqi/pymqe.c:734: warning: implicit declaration of function ‘MQSET’
pymqi/pymqe.c:734: error: ‘MQHCONN’ undeclared (first use in this function)
pymqi/pymqe.c:734: error: expected ‘)’ before ‘lQmgrHandle’
pymqi/pymqe.c:737: error: ‘compCode’ undeclared (first use in this function)
pymqi/pymqe.c:737: error: ‘compReason’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1

以下是我的配置详情:

Linux Box: LSB_VERSION =碱基-4.0-AMD64:碱-4.0-noarch:芯-4.0-AMD64:芯-4.0-noarch:图形-4.0-AMD64:图形-4.0-noarch:印刷-4.0-AMD64:印刷-4.0-noarch 红帽企业Linux服务器版本6.4(圣地亚哥) 红帽企业Linux服务器版本6.4(圣地亚哥)

的Python Python版本2.7.12(32位)

IBM MQClient 我已经提取了以下32位文件并在IBM客户端路径中复制,也导出到PATH变量。

MQSeriesClient-7.1.0-7.i386.rpm MQSeriesRuntime-7.1.0-7.i386.rpm MQSeriesSDK-7.1.0-7.i386.rpm MQSeriesJRE-7.1.0-7.i386.rpm MQSeriesJava-7.1.0-7.i386.rpm

请帮我解决这个问题。

0 个答案:

没有答案