To use -Duse64bitall you would have to build perl (not just the
modules).  This is a flag used to build perl.

You can prove that it works by configuring the perl make to build it
rooted in your home dir, like you have the modules.  Its really not that
hard.  

Once you show it can be done, you can ask your mr root, to provide a
"more public" location/filesystem to build into.  Never try to replace
the OS version of perl, just build your own some place else that you put
ahead of /usr/bin in your path.

Lincoln


On Mon, 2005-07-11 at 15:23 -0400, Andrew wrote:
> 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" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> Sent: maandag 11 juli 2005 16:18
> To: Andrew
> Cc: dbi-users@perl.org; oracle-oci@perl.org
> Subject: Re: dbd Oracle 10g AIX - install nightmare..... :<
> 
> 
> You should post this to [EMAIL PROTECTED]
> 
> 
> 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
> >
> >

Reply via email to