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-26 23:34:57
|
Hi Anurag, My OS is AIX 6.1 : # Oslevel - s 6100-06-06-1140 I'm using Python - 2.7.5 , downloaded at: . http://www.perzl.org/aix/index.php?n=Main.Python I've tried using gcc low . With these settings : export CONFIG_SHELL=/opt/freeware/bin/bash > export CONFIG_ENV_ARGS=/opt/freeware/bin/bash > export CC=gcc > export CFLAGS="-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" > export CXX=g++ > export CXXFLAGS=$CFLAGS > export F77=xlf > export FFLAGS="-O -I/opt/freeware/include" > export LD=ld > # for 64-bit applications > 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 > PATH=/usr/bin:/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/vac/bin:/usr/vacpp/bin:/usr/ccs/bin:/usr/dt/bin:/usr/opt/perl5/bin:/opt/freeware/bin:/opt/freeware/sbin:/usr/local/bin:/usr/lib/instl:$LD_LIBRARY_PATH That same server I can use SQLPlus . When I do : $ Python setup.py install Check out: 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/26 Anurag Chourasia <anu...@gm...> > What problems are you facing? What errors are you getting? > > To get help, you need to help us with more Information. > > Regards, > Anurag > On Nov 26, 2013 8:14 PM, "Ivanelson Nunes" <iva...@gm...> > wrote: > >> In my AIX 6.1 I have not installed xlc/xlc_r. I think the xlc is >> purchased separately. >> >> I get the Python-2.7.5 RPM's for the Perzl [1]. >> >> And've tried installing cx_Oracle and I can not. >> >> I have also tried via gcc (export CC = gcc). >> >> Any tips please? >> >> [1] http://www.perzl.org/aix/ >> >> @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 >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk >> >> _______________________________________________ >> cx-oracle-users mailing list >> cx-...@li... >> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users >> >> > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > > |