develooper Front page | perl.dbi.oracle-oci | Postings from July 2005

dbd Oracle 10g AIX - install nightmare..... :<

Thread Next
From:
Andrew
Date:
July 10, 2005 09:19
Subject:
dbd Oracle 10g AIX - install nightmare..... :<
Message ID:
20050709144200.3045.qmail@lists.develooper.com
 Folks,
 I hope this is correct group.
I just can't install dbd:oracle on aix . Went though all archives...
nothing seems to work:
Here are details :
10g 10.2
This is perl, v5.8.0 built for aix-thread-multi
AIX somehost 2 5 00081BCC4C00
DBD-Oracle-1.16

the output:
$ perl ./Makefile.PL PREFIX=$HOME/modules
Multiple copies of Driver.xst found in:
/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/
/home/azyman/modules/lib/site_perl/5.8.0//aix-thread-multi/auto/DBI/
at ./Makefile.PL line 39
Using DBI 1.48 (for perl 5.008 on aix-thread-multi) installed in
/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/

 Configuring DBD::Oracle ...

>>>     Remember to actually *READ* the README file!
        Especially if you have any problems.

Using Oracle in /u01/app/oracle/product/10g
DEFINE _SQLPLUS_RELEASE = "1001000200" (CHAR)
Oracle version 10.1.0.2 (10.1)
Found /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk
Using /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk
Reading /u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk
Reading /u01/app/oracle/product/10g/rdbms/lib/env_rdbms.mk
Deleting -b64 from COMPOBJS because -b64 doesn't exist.

Attempting to discover Oracle OCI build rules
        cc_r -O -c DBD_ORA_OBJ.c
by executing: [make -f
/u01/app/oracle/product/10g/rdbms/demo/demo_rdbms.mk build ECHODO=echo
ECHO=echo GENCLNTSH='echo genclntsh' CC=true OPTIMIZE= CCFLAGS=
EXE=DBD_ORA_EXE OBJS=DBD_ORA_OBJ.o]
Oracle oci build command:
        [       true  -L/u01/app/oracle/product/10g/lib/
-L/u01/app/oracle/product/10g/rdbms/lib/ -o DBD_ORA_EXE DBD_ORA_OBJ.o
-lclntsh  -lld -lm `cat /u01/app/oracle/product/10g/lib/sysliblist`
-lm  -lpthreads]

Found header files in plsql/public rdbms/public.

Checking for functioning wait.ph


System: perl5.008 aix rocky 2 5 000ad7df4c00
Compiler:   cc_r -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT
-q32 -D_LARGE_FILES -qlonglong
Linker:     /usr/bin/ld
Sysliblist: /lib/crt0_64.o -ldl -lc -lm -lpthreads -lodm -lbsd_r -lld
-lperfstat
Oracle makefiles would have used these definitions but we override
them:
  CC:       $(ORACLE_HOME)/bin/oraxlc $(ORAXLCFLAGS)

  CFLAGS:   $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(PFLAGS)\
        $(SHARED_CFLAG) $(USRFLAGS)
           [$(GFLAG) -O3 $(CDEBUG) -q64 -DSS_64BIT_SERVER -qtocmerge
-bimport:/u01/app/oracle/product/10g/lib/ksms.imp
-I/u01/app/oracle/product/10g/rdbms/demo
-I/u01/app/oracle/product/10g/rdbms/public
-I/u01/app/oracle/product/10g/plsql/public
-I/u01/app/oracle/product/10g/network/public $(SPFLAGS) $(LPFLAGS)
$(USRFLAGS)]

  LDFLAGS:  -o $@ $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME)
           [-o $@ -L/u01/app/oracle/product/10g/rdbms/lib/
-L$(LIBHOME)]


Linking with OTHERLDFLAGS = -L/u01/app/oracle/product/10g/lib/
-L/u01/app/oracle/product/10g/rdbms/lib/   -lclntsh  -lld -lm `cat
/u01/app/oracle/product/10g/lib/sysliblist`  -lm  -lpthreads [from
'build' rule]



Warning: You will may need to rebuild perl using the xlc_r compiler.
         You may also need do: ORACCENV='cc=xlc_r'; export ORACCENV
         Also see the README about the -p option

Checking if your kit is complete...
Looks good
LD_RUN_PATH=/u01/app/oracle/product/10g/lib32:/u01/app/oracle/product/10g/rd
bms/lib32
Using DBD::Oracle 1.16.
Using DBD::Oracle 1.16.
Multiple copies of Driver.xst found in:
/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/
/home/azyman/modules/lib/site_perl/5.8.0//aix-thread-multi/auto/DBI/
at ./Makefile.PL line 1436
Using DBI 1.48 (for perl 5.008 on aix-thread-multi) installed in
/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/
Writing Makefile for DBD::Oracle

***  If you have problems...
     read all the log printed above, and the README and README.help
files.
     (Of course, you have read README by now anyway, haven't you?)

---------------------------------------------------------------
----------------- make --------
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp oraperl.ph blib/lib/oraperl.ph
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oraperl.pm blib/lib/Oraperl.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
        /usr/bin/perl -e 'use ExtUtils::Mksymlists;  Mksymlists("NAME"
=> "DBD::Oracle", "DL_FUNCS" => {  }, "FUNCLIST" => [], "DL_VARS" =>
[]);'
        /usr/bin/perl -p -e "s/~DRIVER~/Oracle/g"
/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI//Driver.x
st
> Oracle.xsi
        /usr/bin/perl /usr/opt/perl5/lib/5.8.0/ExtUtils/xsubpp
-typemap /usr/opt/perl5/lib/5.8.0/ExtUtils/typemap -typemap typemap
Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c
        cc_r -c  -I/u01/app/oracle/product/10g/rdbms/demo
-I/u01/app/oracle/product/10g/rdbms/public
-I/u01/app/oracle/product/10g/plsql/public
-I/u01/app/oracle/product/10g/network/public
-I/u01/app/oracle/product/10g/rdbms/demo
-I/u01/app/oracle/product/10g/plsql/public
-I/u01/app/oracle/product/10g/rdbms/public
-I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/
 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.16\"
-DXS_VERSION=\"1.16\"
"-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE"  -DUTF8_SUPPORT
-DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.2\" Oracle.c
        cc_r -c  -I/u01/app/oracle/product/10g/rdbms/demo
-I/u01/app/oracle/product/10g/rdbms/public
-I/u01/app/oracle/product/10g/plsql/public
-I/u01/app/oracle/product/10g/network/public
-I/u01/app/oracle/product/10g/rdbms/demo
-I/u01/app/oracle/product/10g/plsql/public
-I/u01/app/oracle/product/10g/rdbms/public
-I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/
 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.16\"
-DXS_VERSION=\"1.16\"
"-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE"  -DUTF8_SUPPORT
-DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.2\" dbdimp.c
        cc_r -c  -I/u01/app/oracle/product/10g/rdbms/demo
-I/u01/app/oracle/product/10g/rdbms/public
-I/u01/app/oracle/product/10g/plsql/public
-I/u01/app/oracle/product/10g/network/public
-I/u01/app/oracle/product/10g/rdbms/demo
-I/u01/app/oracle/product/10g/plsql/public
-I/u01/app/oracle/product/10g/rdbms/public
-I/home/azyman/modules/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/
 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384
-qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.16\"
-DXS_VERSION=\"1.16\"
"-I/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE"  -DUTF8_SUPPORT
-DNEW_OCI_INIT -DORA_OCI_VERSION=\"10.1.0.2\" oci8.c
Running Mkbootstrap for DBD::Oracle ()
        chmod 644 Oracle.bs
        rm -f blib/arch/auto/DBD/Oracle/Oracle.so

LD_RUN_PATH="/u01/app/oracle/product/10g/lib32:/u01/app/oracle/product/10g/r
dbms/lib32"
ld  -bhalt:4 -bM:SRE
-bI:/usr/opt/perl5/lib/5.8.0/aix-thread-multi/CORE/perl.exp
-bE:Oracle.exp -bnoentry -lpthreads -lc_r Oracle.o  dbdimp.o  oci8.o
-L/u01/app/oracle/product/10g/lib/
-L/u01/app/oracle/product/10g/rdbms/lib/   -lclntsh  -lld -lm `cat
/u01/app/oracle/product/10g/lib/sysliblist`  -lm  -lpthreads -o
blib/arch/auto/DBD/Oracle/Oracle.so
ld: 0711-736 ERROR: Input file /lib/crt0_64.o:
        XCOFF64 object files are not allowed in 32-bit mode.
make: 1254-004 The error code from the last command is 8.


Stop.
--------------- end ---------------------

i did try to change the lib to lib32. no effect :<
Please ANY help this this nightmare.
Andrew



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About