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



Bjorn,
I'm new to this game . I'm not ROOT on the machine, so i compile my modules
to my user's directory.
Does it mean that i have to recomplie the perl on the system (
/usr/bin/perl ) in order to get my module to work ?
or i just need to execute in the module directory :
perl ./Makefile.PL PREFIX=$HOME/modules -Duse64bital
?


Thank you.
Andrew



"Bjorn Naessens" <Bjorn.Naessens@xxxxxxxxxxx> wrote in message
news:E2D46872D48E224998CD1EAE52A8365601139222@xxxxxxxxxxxxxxxxxxx
Rebuild perl with -Duse64bitall flag. There have recent been a number of
problems with this ( it's the same error as some people got with oracle
9i ).

If you don't succeed, i have a document explaining the complete install.
But normally that flag will do the trick.

Ps. Be sure you compile the makefiles with the right perl version ;)


-----Original Message-----
From: Scott T. Hildreth [mailto:shildret@xxxxxxxxxxxxxxxxxxx]
Sent: maandag 11 juli 2005 16:18
To: Andrew
Cc: dbi-users@xxxxxxxx; oracle-oci@xxxxxxxx
Subject: Re: dbd Oracle 10g AIX - install nightmare..... :<


You should post this to dbi-users@xxxxxxxxx


On Sat, 2005-07-09 at 10:36 -0400, Andrew wrote:
> 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//Dr
> iver.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
>
>
--
Scott T. Hildreth <shildret@xxxxxxxxxxxxxxxxxxx>



.



Relevant Pages

  • Compiling and running DBD for Oracle 10g without installing Oracle
    ... I recently had to compile the DBD modules for Oracle 10g on machines, ... perl, DBI etc. of recent enough version ... Oracle 10g installation disk for your architecture (available at ...
    (perl.dbi.users)
  • Compiling and running DBD for Oracle 10g without installing Oracle
    ... I recently had to compile the DBD modules for Oracle 10g on machines, ... perl, DBI etc. of recent enough version ... Oracle 10g installation disk for your architecture (available at ...
    (perl.dbi.users)
  • Re: DBD-Oracle-1.14 and Oracle 9i
    ... to install and run with it. ... Should I be able to compile for Oracle 9/64bit on Solaris? ... >> Building perl with nothread ...
    (perl.dbi.users)
  • RE: DBD-Oracle-1.14 and Oracle 9i
    ... I explained how I succeeded to build DBD::Oracle with Oracle 9i on a HP-UX system. ... It seems that you encounter the same messages I encountered. ... recompile perl conforming to HP requirements (reccomendations from Garry Ferguson ... I've not been able to successfully compile DBD-Oracle-1.14 with our current ...
    (perl.dbi.users)
  • Re: Questions about "perldoc perlembed"
    ... Ultimately I am trying to embed the ability to run Perl scripts on ... Perl to properly embed in my Win32 C++ program. ... COMPILE THE PROGRAMS IN EXACTLY THE SAME ... Eventually I read the section "Maintaining multiple interpreter ...
    (comp.lang.perl.misc)