Thread: [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 14:18:14
|
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 @ivanelson []s |
From: Kristian B. <kr...@ti...> - 2013-11-25 14:48:39
|
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] |
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 > > |
From: Ivanelson N. <iva...@gm...> - 2013-11-26 23:13:19
|
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 > > |
From: Anurag C. <anu...@gm...> - 2013-11-26 23:21:44
|
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 > > |
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 > > |
From: Ivanelson N. <iva...@gm...> - 2013-11-27 04:14:09
|
I decided to reinstall gcc. I installed version 4.8.2. After that I tried again to install cx_Oracle. The error message has changed: bash-4.2$ pwd ; python -V >> /opt/cx_Oracle-5.1.2 >> Python 2.7.5 >> bash-4.2$ python setup.py install >> running install >> running build >> running build_ext >> building 'cx_Oracle' extension >> gcc -DNDEBUG -O -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 -I/usr/lib/instantclient_11_2/sdk/include >> -I/opt/freeware/include/python2.7 -c cx_Oracle.c -o >> build/temp.aix-6.1-2.7-11g/cx_Oracle.o -DBUILD_VERSION=5.1.2 >> ./Modules/ld_so_aix xlc_r -ma -I/opt/freeware/include >> -DAIX_GENUINE_CPLUSCPLUS -Wl,-brtl -bI:./Modules/python.exp >> -L/opt/freeware/lib -L/opt/freeware/lib64 -L/opt/freeware/lib >> -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib >> -Wl,-bmaxdata:0x80000000 -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 build/temp.aix-6.1-2.7-11g/cx_Oracle.o >> -L/usr/lib/instantclient_11_2 -lclntsh -o >> build/lib.aix-6.1-2.7-11g/cx_Oracle.so >> > unable to execute ./Modules/ld_so_aix: No such file or directory > error: command './Modules/ld_so_aix' failed with exit status 1 > Help me please. @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 > > |
From: Kristian B. <kr...@ti...> - 2013-11-27 07:46:54
|
On 27.11.2013 05:14, Ivanelson Nunes wrote: > I decided to reinstall gcc. I installed version 4.8.2. After that I tried again to install cx_Oracle. > >> unable to execute ./Modules/ld_so_aix: No such file or directory >> error: command './Modules/ld_so_aix' failed with exit status 1 The perzl python binaries have been compiled with xlc, so you won't be able to compile python extensions without xlc, if you use it. I adapted perzl rpm spec to work with gcc: https://gist.github.com/kriberg/6351551 You can use that to compile python and then compile cx_Oracle. Your mileage may vary, as perzl is much more competent at making srpms for AIX than me. -- [Kristian Berg] |
From: Ivanelson N. <iva...@gm...> - 2013-11-27 11:13:08
|
My only way out is to buy the xlc? If someone to build and compiled in the format aix_ppc cx_Oracle? @ivanelson []s 2013/11/27 Kristian Berg <kr...@ti...> > On 27.11.2013 05:14, Ivanelson Nunes wrote: > > I decided to reinstall gcc. I installed version 4.8.2. After that I tried > again to install cx_Oracle. > > unable to execute ./Modules/ld_so_aix: No such file or directory >> error: command './Modules/ld_so_aix' failed with exit status 1 > > > > > The perzl python binaries have been compiled with xlc, so you won't be able to compile python extensions without xlc, if you use it. > I adapted perzl rpm spec to work with gcc: > https://gist.github.com/kriberg/6351551 > > You can use that to compile python and then compile cx_Oracle. Your mileage may vary, as perzl is much more competent at making srpms for AIX than me. > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > 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 > > |
From: Kristian B. <kr...@ti...> - 2013-11-27 11:21:27
|
On 27.11.2013 12:13, Ivanelson Nunes wrote: > My only way out is to buy the xlc? If someone to build and compiled in the format aix_ppc cx_Oracle? No, you can compile cx_Oracle with gcc, but you have to use a Python binary compiled with gcc to achieve that. When Python is built on aix, it also creates a wrapper for compiling C modules that can be called from Python. This is the ld_so_aix program. If you compile python with xlc, the wrapper will be created with xlc as the compiler and linker. If you compile python with gcc, it will create a wrapper using gcc. You can't use a xlc-compiled python to create gcc-compiled modules. So you either have to rebuild python with gcc and then compile cx_oracle or you have to get xlc to compile cx_oracle. Now, you can get a free trial of xlc for aix on ibm's website. Maybe that's sufficient to create a rpm you can reuse, but make sure to check the licensing terms of the trial before doing so. -- [Kristian Berg] |
From: Ivanelson N. <iva...@gm...> - 2013-11-27 13:26:59
|
I did a test on another server with AIX as well. Python-2.7.6.tgz downloaded a version compiled and manual. ./configure --prefix=/usr/lib/Python-2.7.6 > make > make install > chmod -R 777 /opt/local/ Python it works: bash-4.2$ /usr/lib/Python-2.7.3/bin/python > Python 2.7.6 (default, Nov 27 2013, 09:49:44) > [GCC 4.2.3] on aix6 > Type "help", "copyright", "credits" or "license" for more information. > >>> But installing cx_Oracle continues on failure: bash-4.2$ /usr/lib/Python-2.7.3/bin/python setup.py install > running install > running build > running build_ext > building 'cx_Oracle' extension > gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -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 > -I/u1/oratez/app/oracle/product/11.2.0/dbhome_1/rdbms/demo > -I/u1/oratez/app/oracle/product/11.2.0/dbhome_1/rdbms/public > -I/usr/lib/Python-2.7.3/include/python2.7 -c cx_Oracle.c -o > build/temp.aix-6.1-2.7-10g/cx_Oracle.o -DBUILD_VERSION=5.1.2 > In file included from > /u1/oratez/app/oracle/product/11.2.0/dbhome_1/rdbms/public/oci.h:3024, > from cx_Oracle.c:10: > /u1/oratez/app/oracle/product/11.2.0/dbhome_1/rdbms/public/ociap.h:10788: > warning: function declaration isn't a prototype > /u1/oratez/app/oracle/product/11.2.0/dbhome_1/rdbms/public/ociap.h:10794: > warning: function declaration isn't a prototype > ./Modules/ld_so_aix gcc -pthread -bI:./Modules/python.exp > -L/opt/freeware/lib64 -L/opt/freeware/lib > -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib > -Wl,-bmaxdata:0x80000000 -L/opt/freeware/lib64 -L/opt/freeware/lib > -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib > -Wl,-bmaxdata:0x80000000 -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 build/temp.aix-6.1-2.7-10g/cx_Oracle.o > -L/u1/oratez/app/oracle/product/11.2.0/dbhome_1/lib -lclntsh -o > build/lib.aix-6.1-2.7-10g/cx_Oracle.so > unable to execute ./Modules/ld_so_aix: No such file or directory > error: command './Modules/ld_so_aix' failed with exit status 1 @ivanelson []s 2013/11/27 Kristian Berg <kr...@ti...> > On 27.11.2013 12:13, Ivanelson Nunes wrote: > > My only way out is to buy the xlc? If someone to build and compiled in the > format aix_ppc cx_Oracle? > > > No, you can compile cx_Oracle with gcc, but you have to use a Python binary compiled with gcc to achieve that. When Python is built on aix, it also creates a wrapper for compiling C modules that can be called from Python. This is the ld_so_aix program. If you compile python with xlc, the wrapper will be created with xlc as the compiler and linker. If you compile python with gcc, it will create a wrapper using gcc. You can't use a xlc-compiled python to create gcc-compiled modules. So you either have to rebuild python with gcc and then compile cx_oracle or you have to get xlc to compile cx_oracle. Now, you can get a free trial of xlc for aix on ibm's website. Maybe that's sufficient to create a rpm you can reuse, but make sure to check the licensing terms of the trial before doing so. > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > 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 > > |
From: Kristian B. <kr...@ti...> - 2013-11-27 13:39:43
|
On 27.11.2013 14:26, Ivanelson Nunes wrote: >> unable to execute ./Modules/ld_so_aix: No such file or directory >> error: command './Modules/ld_so_aix' failed with exit status 1 You're getting this because compiling python directly on aix doesn't setup the target path for ld_so_aix correctly. You need to change some parameters in _sysconfigdata.py. If you compiled and installed manually, it is probably located in /usr/local/lib/python2.7/. Find the instances of "./Modules/ld_so_aix" and change it to the absolute path of ld_so_aix, usually located under config/ld_so_aix in that same installation directory. I.E., /usr/local/lib/python2.7/config/ld_so_aix. If anybody else has a good suggestion on how to fix the linker issue with python on aix other than search and replace in ld_so_aix, I'm very interested as it's a hack. -- [Kristian Berg] |
From: Ivanelson N. <iva...@gm...> - 2013-11-27 20:57:36
|
Problems and more problems. I am installing a new instance of Python, but when I do make, I get an error. # ./configure --prefix=/usr/lib/python-2.7.6 # make rt.o Modules/symtablemodule.o Modules/xxsubtype.o > ranlib libpython2.7.a > ./Modules/makexp_aix Modules/python.exp . libpython2.7.a; gcc > -pthread -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib > -Wl,-bmaxdata:0x80000000 -Wl,-bE:Modules/python.exp -lld -o python > Modules/python.o libpython2.7.a -ldl -lm > *collect2: fatal error: library libm not found* > compilation terminated. > make: 1254-004 The error code from the last command is 1. :( @ivanelson []s 2013/11/27 Kristian Berg <kr...@ti...> > On 27.11.2013 14:26, Ivanelson Nunes wrote: > > > unable to execute ./Modules/ld_so_aix: No such file or directory >> error: command './Modules/ld_so_aix' failed with exit status 1 > > > > You're getting this because compiling python directly on aix doesn't setup the target path for ld_so_aix correctly. You need to change some parameters in _sysconfigdata.py. If you compiled and installed manually, it is probably located in /usr/local/lib/python2.7/. Find the instances of "./Modules/ld_so_aix" and change it to the absolute path of ld_so_aix, usually located under config/ld_so_aix in that same installation directory. I.E., /usr/local/lib/python2.7/config/ld_so_aix. > > If anybody else has a good suggestion on how to fix the linker issue with python on aix other than search and replace in ld_so_aix, I'm very interested as it's a hack. > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > 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 > > |
From: Kristian B. <kr...@ti...> - 2013-11-27 22:06:56
|
On 11/27/2013 09:57 PM, Ivanelson Nunes wrote: > Problems and more problems. I am installing a new instance of Python, > but when I do make, I get an error. > > # ./configure --prefix=/usr/lib/python-2.7.6 > # make > > rt.o Modules/symtablemodule.o Modules/xxsubtype.o > ranlib libpython2.7.a > ./Modules/makexp_aix Modules/python.exp . libpython2.7.a; > gcc -pthread -L/opt/freeware/lib > -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib > -Wl,-bmaxdata:0x80000000 -Wl,-bE:Modules/python.exp -lld -o python > Modules/python.o libpython2.7.a -ldl -lm > *collect2: fatal error: library libm not found* > compilation terminated. > make: 1254-004 The error code from the last command is 1. > > You need to install the dependencies for compiling Python first. Check out the python page on perzl for a complete list. You dont need everything, but most of them. I'd recommend using the rpm spec-file i linked you though. Install the srpm for python on perzl first, then drop my spec-file into /opt/freeware/src/packages/SPECS/ and compile it with "rpm -bb --target ibm-ppc-aix6.1 foo.spec" -- [Kristian Berg] |
From: Ivanelson N. <iva...@gm...> - 2013-11-28 01:28:57
|
Is this the spec file? ftp://www.oss4aix.org/SPECS/python-2.7.5-1.spec Because I need to install the dependencies again? I have already installed all the RPM's perzl site. I think I just need the Python tarfile. Right or Error? A version of cx_Oracle on aix_ppc rpm would be easier for everyone. : ( |
From: Kristian B. <kr...@ti...> - 2013-11-28 08:42:09
|
On 28.11.2013 02:28, Ivanelson Nunes wrote: > Is this the spec file? > ftp://www.oss4aix.org/SPECS/python-2.7.5-1.spec [1] > > Because I need to install the dependencies again? I have already installed all the RPM's perzl site. I think I just need the Python tarfile. Right or Error? > > A version of cx_Oracle on aix_ppc rpm would be easier for everyone. : ( This is the spec-file I created for using gcc: https://gist.github.com/kriberg/6351551 You need the build dependencies for Python too, in addition to the runtime dependencies. I'm not sure you even can distribute a rpm of cx_Oracle, as it links with the instant client. -- [Kristian Berg] Links: ------ [1] ftp://www.oss4aix.org/SPECS/python-2.7.5-1.spec |
From: Ivanelson N. <iva...@gm...> - 2013-11-28 18:42:06
|
When I installed the rpm's python for perzl, I downloaded all of these: /opt/freeware/pythonppc > # ls -tg > total 234160 > -rw-r--r-- 1 system 10022361 Nov 22 00:20 > libstdc++-4.8.2-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 2667103 Nov 22 00:20 > libstdc++-devel-4.8.2-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 18117699 Nov 22 00:20 > openssl-1.0.1e-2.aix5.1.ppc.rpm > -rw-r--r-- 1 system 2621760 Nov 22 00:20 > tcl-8.5.15-1.aix5.1.ppc.rpm > -rw-r--r-- 1 system 9934241 Nov 22 00:20 > gcc-gfortran-4.8.2-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 130215 Nov 22 00:20 > libffi-3.0.13-1.aix5.1.ppc.rpm > -rw-r--r-- 1 system 886300 Nov 22 00:20 > libgcc-4.8.2-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 517814 Nov 22 00:20 > libgomp-4.8.2-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 18087017 Nov 22 00:20 gcc-4.8.2-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 6571520 Nov 22 00:20 > gcc-c++-4.8.2-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 5866258 Nov 22 00:20 > gcc-cpp-4.8.2-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 122731 Nov 22 00:20 > bzip2-1.0.6-1.aix5.1.ppc.rpm > -rw-r--r-- 1 system 3054640 Nov 22 00:20 > db4-4.7.25-2.aix5.1.ppc.rpm > -rw-r--r-- 1 system 3030360 Nov 22 00:20 > db4-cxx-4.7.25-2.aix5.1.ppc.rpm > -rw-r--r-- 1 system 1488021 Nov 22 00:20 > db4-devel-4.7.25-2.aix5.1.ppc.rpm > -rw-r--r-- 1 system 3439979 Nov 22 00:20 > db4-tcl-4.7.25-2.aix5.1.ppc.rpm > -rw-r--r-- 1 system 274950 Nov 22 00:20 > db4-utils-4.7.25-2.aix5.1.ppc.rpm > -rw-r--r-- 1 system 389811 Nov 22 00:20 > expat-2.1.0-1.aix5.1.ppc.rpm > -rw-r--r-- 1 system 57732 Nov 22 00:20 > expat-devel-2.1.0-1.aix5.1.ppc.rpm > -rw-r--r-- 1 system 12077202 Nov 21 23:52 > python-test-2.7.5-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 9137 Nov 21 23:52 > python-tools-2.7.5-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 996973 Nov 21 23:52 > tkinter-2.7.5-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 222491 Nov 21 23:52 > python-devel-2.7.5-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 4101564 Nov 21 23:52 > python-libs-2.7.5-1.aix6.1.ppc.rpm > -rw-r--r-- 1 system 15140204 Nov 21 23:52 > python-2.7.5-1.aix6.1.ppc.rpm So I have to download all those again, but in tar format and then install all? I got errors: bash-4.2# rpm -bb --target ibm_ppc=aix6.1 > /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec > Building target platforms: ibm_ppc=aix6.1 > Building for target ibm_ppc=aix6.1 > File /opt/freeware/src/packages/SOURCES/Python-2.7.5.tar.bz2: A file or > directory in the path name does not exist. @ivanelson []s 2013/11/28 Kristian Berg <kr...@ti...> > On 28.11.2013 02:28, Ivanelson Nunes wrote: > > Is this the spec file? > ftp://www.oss4aix.org/SPECS/python-2.7.5-1.spec > > Because I need to install the dependencies again? I have already installed > all the RPM's perzl site. I think I just need the Python tarfile. Right or > Error? > > A version of cx_Oracle on aix_ppc rpm would be easier for everyone. : ( > > This is the spec-file I created for using gcc: > https://gist.github.com/kriberg/6351551 > > > You need the build dependencies for Python too, in addition to the runtime dependencies. > > I'm not sure you even can distribute a rpm of cx_Oracle, as it links with the instant client. > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > 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 > > |
From: Kristian B. <kr...@ti...> - 2013-11-28 18:45:16
|
On 11/28/2013 07:41 PM, Ivanelson Nunes wrote: > > bash-4.2# rpm -bb --target ibm_ppc=aix6.1 > /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec > Building target platforms: ibm_ppc=aix6.1 > Building for target ibm_ppc=aix6.1 > File /opt/freeware/src/packages/SOURCES/Python-2.7.5.tar.bz2: A > file or directory in the path name does not exist. > > > > You need to install the source rpm for python from prezl to get the source and various patches etc. http://www.oss4aix.org/download/SRPMS/python/python-2.7.5-1.src.rpm -- [Kristian Berg] |
From: Ivanelson N. <iva...@gm...> - 2013-11-28 19:01:09
|
Done! Installed bash-4.2# rpm -ivh python-2.7.5-1.src.rpm python ################################################## What the next step?! @ivanelson []s 2013/11/28 Kristian Berg <kr...@ti...> > On 11/28/2013 07:41 PM, Ivanelson Nunes wrote: > > > bash-4.2# rpm -bb --target ibm_ppc=aix6.1 >> /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec >> Building target platforms: ibm_ppc=aix6.1 >> Building for target ibm_ppc=aix6.1 >> File /opt/freeware/src/packages/SOURCES/Python-2.7.5.tar.bz2: A file or >> directory in the path name does not exist. > > > > > You need to install the source rpm for python from prezl to get the > source and various patches etc. > http://www.oss4aix.org/download/SRPMS/python/python-2.7.5-1.src.rpm > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > 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 > > |
From: Kristian B. <kr...@ti...> - 2013-11-28 19:27:08
|
On 11/28/2013 08:01 PM, Ivanelson Nunes wrote: > rpm -bb --target ibm_ppc=aix6.1 > /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec rpm -bb --target ppc-ibm-aix6.1 /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec -- [Kristian Berg] |
From: Ivanelson N. <iva...@gm...> - 2013-11-28 19:55:54
|
I downloaded this spec: wget ftp://www.oss4aix.org/SPECS/python-2.7.5-1.spec and saved on: rcp /tmp/python-2.7.5-1.spec scobtez:/opt/freeware/src/packages/SPECS I do: rpm-bb - target ppc-ibm-aix6.1 > /opt/freeware/src/packages/SPECS/python-2.7.5-1.spec I got error: Building target platforms: ppc-ibm-aix6.1 > Building for target ppc-ibm-aix6.1 > error: failed build dependencies: > patch is needed by python-2.7.5-1 > db4-devel >= 4.7.25-2 is needed by python-2.7.5-1 > gdbm-devel >= 1.8.3-1 is needed by python-2.7.5-1 > libffi-devel >= 3.0.13-1 is needed by python-2.7.5-1 > openssl-devel >= 1.0.1 is needed by python-2.7.5-1 > pkg-config is needed by python-2.7.5-1 > readline-devel >= 5.2-3 is needed by python-2.7.5-1 > tcl-devel >= 8.5.8-2 is needed by python-2.7.5-1 > tk-devel >= 8.5.8-1 is needed by python-2.7.5-1 > sqlite-devel >= 3.7.3-1 is needed by python-2.7.5-1 What suffering! @ivanelson []s 2013/11/28 Kristian Berg <kr...@ti...> > On 11/28/2013 08:01 PM, Ivanelson Nunes wrote: > > rpm -bb --target ibm_ppc=aix6.1 > /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec > > rpm -bb --target ppc-ibm-aix6.1 > /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > 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 > > |
From: Ivanelson N. <iva...@gm...> - 2013-11-28 20:00:55
|
I think I get this error. Actually, I did not install the * devel * rpm. I'll install it now, because the requirements are spec file. @ivanelson []s 2013/11/28 Ivanelson Nunes <iva...@gm...> > I downloaded this spec: > > wget ftp://www.oss4aix.org/SPECS/python-2.7.5-1.spec > > > and saved on: > > rcp /tmp/python-2.7.5-1.spec scobtez:/opt/freeware/src/packages/SPECS > > I do: > > rpm-bb - target ppc-ibm-aix6.1 >> /opt/freeware/src/packages/SPECS/python-2.7.5-1.spec > > > I got error: > > Building target platforms: ppc-ibm-aix6.1 >> Building for target ppc-ibm-aix6.1 >> error: failed build dependencies: >> patch is needed by python-2.7.5-1 >> db4-devel >= 4.7.25-2 is needed by python-2.7.5-1 >> gdbm-devel >= 1.8.3-1 is needed by python-2.7.5-1 >> libffi-devel >= 3.0.13-1 is needed by python-2.7.5-1 >> openssl-devel >= 1.0.1 is needed by python-2.7.5-1 >> pkg-config is needed by python-2.7.5-1 >> readline-devel >= 5.2-3 is needed by python-2.7.5-1 >> tcl-devel >= 8.5.8-2 is needed by python-2.7.5-1 >> tk-devel >= 8.5.8-1 is needed by python-2.7.5-1 >> sqlite-devel >= 3.7.3-1 is needed by python-2.7.5-1 > > > What suffering! > > @ivanelson > []s > > > 2013/11/28 Kristian Berg <kr...@ti...> > >> On 11/28/2013 08:01 PM, Ivanelson Nunes wrote: >> >> rpm -bb --target ibm_ppc=aix6.1 >> /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec >> >> rpm -bb --target ppc-ibm-aix6.1 >> /opt/freeware/src/packages/SPECS/python-2.7.5.2.spec >> >> -- >> [Kristian Berg] >> >> >> >> ------------------------------------------------------------------------------ >> 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 >> >> > |
From: Kristian B. <kr...@ti...> - 2013-11-28 20:17:01
|
On 11/28/2013 09:00 PM, Ivanelson Nunes wrote: > I think I get this error. Actually, I did not install the * devel * > rpm. I'll install it now, because the requirements are spec file. > You also need to use the spec file in the gist from github that I linked you, not the spec from perzl. -- [Kristian Berg] |
From: Ivanelson N. <iva...@gm...> - 2013-11-28 20:31:48
|
Its gist is the spec file for python-2.7.5-2. My python is 2.7.5-1. bash-4.2 # python > Python 2.7.5 (default, Aug 2 2013, 23:28:11) [C] on aix6 > Type "help", "copyright", "credits" or "license" for more information. ?! @ivanelson []s 2013/11/28 Kristian Berg <kr...@ti...> > On 11/28/2013 09:00 PM, Ivanelson Nunes wrote: > > I think I get this error. Actually, I did not install the * devel * > > rpm. I'll install it now, because the requirements are spec file. > > > > You also need to use the spec file in the gist from github that I linked > you, not the spec from perzl. > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > 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 > |
From: Ivanelson N. <iva...@gm...> - 2013-11-29 01:23:58
|
Hello, installed all dependencies for python-2.7.5-1 in perzl site. Then I did: > bash-4.2# rpm -bb --target ppc-ibm-aix6.1 > /opt/freeware/src/packages/SPECS/python-2.7.5-2.spec > Building target platforms: ppc-ibm-aix6.1 > Building for target ppc-ibm-aix6.1 > error: failed build dependencies: > patch is needed by python-2.7.5-2 How do I make a spec file to version 2.7.5-1? Thanks @ivanelson []s 2013/11/28 Kristian Berg <kr...@ti...> > On 11/28/2013 09:00 PM, Ivanelson Nunes wrote: > > I think I get this error. Actually, I did not install the * devel * > > rpm. I'll install it now, because the requirements are spec file. > > > > You also need to use the spec file in the gist from github that I linked > you, not the spec from perzl. > > -- > [Kristian Berg] > > > > ------------------------------------------------------------------------------ > 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 > |