Re: [cx-oracle-users] Installing cx_Oracle on AIX without using "xlc_r"
Brought to you by:
atuining
From: Ivanelson N. <iva...@gm...> - 2013-11-25 16:41:17
|
Kristian Berg, I feel that the solution is near . see : SessionPool.c : 527 : error : ' udt_SessionPool ' has no member named ' > environment ' > SessionPool.c : 528 : error : ' udt_SessionPool ' has no member named ' > environment ' > cx_Oracle.c : At top level: > cx_Oracle.c : 205 : error : expected '=' , ',' , ' , ', ' asm ' or ' > __attribute__ ' before ' * ' token > cx_Oracle.c : 249 : error : expected '=' , ',' , ' , ', ' asm ' or ' > __attribute__ ' before ' * ' token > cx_Oracle.c : 267 : error : expected '=' , ',' , ' , ', ' asm ' or ' > __attribute__ ' before ' * ' token > cx_Oracle.c : 281 : error : expected '=' , ',' , ' , ', ' asm ' or ' > __attribute__ ' before ' * ' token > cx_Oracle.c : 295 : error : expected '=' , ',' , ' , ', ' asm ' or ' > __attribute__ ' before ' * ' token > cx_Oracle.c : 307 : error : expected '=' , ',' , ' , ', ' asm ' or ' > __attribute__ ' before ' * ' token > cx_Oracle.c : 318 : error : expected '=' , ',' , ' , ', ' asm ' or ' > __attribute__ ' before ' g_ModuleMethods ' > cx_Oracle.c : 353 : error : expected '=' , ',' , ' , ', ' asm ' or ' > __attribute__ ' before ' * ' token > error : command ' gcc' failed with exit status 1 > @ivanelson []s 2013/11/25 Kristian Berg <kr...@ti...> > On 25.11.2013 15:18, Ivanelson Nunes wrote: > > I want to install cx_Oracle - 5.1.2 on AIX 6 , however I got an error : > > >> bash -4.2 $ python setup.py install >> / usr/lib/instantclient_11_2 >> running install >> running build >> running build_ext >> building ' cx_Oracle ' extension >> xlc_r - ma - -I/opt/freeware/include DAIX_GENUINE_CPLUSCPLUS -Wl , - brtl >> - qmaxmem = 16384 - DSYSV - D_AIX - D_AIX32 - D_AIX41 - D_AIX43 - D_AIX51 - >> D_AIX52 - D_AIX53 - D_AIX61 - D_ALL_SOURCE - DFUNCPROTO = 15-O -I / opt / >> freeware / include - DNDEBUG -O - c >> -I/usr/lib/instantclient_11_2/sdk/include -I/opt/freeware/include/python2.7 >> cx_Oracle.c it build/temp.aix-6.1-2.7 -11g/cx_Oracle.o = 5.1.2 - >> DBUILD_VERSION >> Unable to run xlc_r : No such file or directory >> error : command ' xlc_r ' failed with exit status 1 > > > How do I change " xlc_e " by " gcc " . > > # oslevel - s > 6100-06-06-1140 > > # lslpp - ch | grep -i xlc > / usr / lib / objrepos : xlC.aix61.rte : 11.1.0.1 :: COMMIT : COMPLETE : > 05/20/11 : 07 , 32, 06 > / usr / lib / objrepos : xlC.cpp : 9.0.0.0 :: COMMIT : COMPLETE : 05/19/11 > : 16 , 27, 09 > / usr / lib / objrepos : xlC.msg.en_US.cpp : 9.0.0.0 :: COMMIT : COMPLETE > : 05/19/11 : 16 , 49, 30 > / usr / lib / objrepos : xlC.msg.en_US.rte : 11.1.0.1 :: COMMIT : COMPLETE > : 05/20/11 : 08 , 02 , 45 > / usr / lib / objrepos : xlC.rte : 11.1.0.1 :: COMMIT : COMPLETE : > 05/20/11 : 08 , 02 , 43 > / usr / lib / objrepos : xlC.sup.aix50.rte : 9.0.0.1 :: COMMIT : COMPLETE > : 05/19/11 : 15 , 45, 49 > > > I use this shell environment when compiling on AIX: > export CC=gcc > export CXX=g++ > export F77=xlf > export FFLAGS="-O -I/opt/freeware/include" > export LD=ld > export LDFLAGS="-L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" > export CFLAGS="-maix64 -g -mminimal-toc -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O2 -I/opt/freeware/include" > export CXXFLAGS=$CFLAGS > export OBJECT_MODE=64 > > You should at least set the CC variable to gcc. I use the gcc RPMs distributed from perzl.org to compile. > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up > now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > > |