Re: [cx-oracle-users] Installation of cx_Oracle 5.1.1
Brought to you by:
atuining
From: Jani T. <re...@gm...> - 2012-05-09 12:19:11
|
9.5.2012 14:32, Marilena Papageorgiou kirjoitti: > Hi all, > I have a question according to the installation of cx_Oracle 5.1.1. I'm > using Oracle Database 10g xe universal Rel.10.2.0.1.0 on Ubuntu 10.04 > 64-bit for a django project with python 2.6. I try to install cx_Oracle > 5.1.1 but after the build i get errors like these: > > cx_Oracle.c:519: warning: passing argument 3 of > ‘PyModule_AddIntConstant’ makes integer from pointer without a cast > /usr/include/python2.6/modsupport.h:41: note: expected ‘long int’ but > argument is of type ‘struct PyMemberDef *’ > cx_Oracle.c:520: error: ‘OCI_UCBTYPE_REPLACE’ undeclared (first use in > this function) > cx_Oracle.c:520: warning: passing argument 3 of > ‘PyModule_AddIntConstant’ makes integer from pointer without a cast > /usr/include/python2.6/modsupport.h:41: note: expected ‘long int’ but > argument is of type ‘struct PyMemberDef *’ > cx_Oracle.c:521: error: ‘OCI_SPOOL_ATTRVAL_WAIT’ undeclared (first use > in this function) > cx_Oracle.c:521: warning: passing argument 3 of > ‘PyModule_AddIntConstant’ makes integer from pointer without a cast > /usr/include/python2.6/modsupport.h:41: note: expected ‘long int’ but > argument is of type ‘struct PyMemberDef *’ > cx_Oracle.c:522: error: ‘OCI_SPOOL_ATTRVAL_NOWAIT’ undeclared (first use > in this function) > cx_Oracle.c:522: warning: passing argument 3 of > ‘PyModule_AddIntConstant’ makes integer from pointer without a cast > /usr/include/python2.6/modsupport.h:41: note: expected ‘long int’ but > argument is of type ‘struct PyMemberDef *’ > cx_Oracle.c:523: error: ‘OCI_SPOOL_ATTRVAL_FORCEGET’ undeclared (first > use in this function) > cx_Oracle.c:523: warning: passing argument 3 of > ‘PyModule_AddIntConstant’ makes integer from pointer without a cast > /usr/include/python2.6/modsupport.h:41: note: expected ‘long int’ but > argument is of type ‘struct PyMemberDef *’ > error: command 'gcc' failed with exit status 1 > > The instant client is the 10.2.x.x. Is it compatible? > > Can anyone guide me through these errors? > > Thx in advance. Do you have both installed: python development headers/libs and instant client SDK? -- Jani Tiainen - Well planned is half done and a half done has been sufficient before... |