Here is how I do it (the tricky bits are getting your LD_LIB_PATH,
SH_LIB_PATH... envs correct, and modifying the compile defaults), this is
for 64bit:

cd /opt/perl/src
gunzip -c stable.tar.gz | tar xvf -
cd perl-5.6.1
rm Policy.sh config.sh
sh Configure -Ubincompat5005 -Dprefix=/opt/perl -Duselargfiles
#
## As indicated by the READMEs
## I answered the following questions like:
##
##What libraries to use?
[-lnsl -lnm -lndbm -lmalloc -ldld -lm -lc -lndir -lcrypt -lsec]
## -lcl -lpthread -lnsl -lnm -lndbm -lmalloc -ldld -lm -lc -lndir -lcrypt -l
sec
##
##Any additional cc flags? [-D_HPUX_SOURCE -Aa] +z -D_HPUX_SOURCE -Aa
##
## then did a: & -d at the next question to accept defaults
#
make
make test
make install
#
cd /opt/perl/src
gunzip -c DBI-1.19.tar.gz | tar xvf -
cd DBI-1.19
perl Makefile.PL
make
make test
make install

# The Environmentals are the gotchas, make sure you can connect to your db
using sqlplus
# before compiling the DBD
# Furthermore, you may have to monkey with LD_LIBRARY_PATH, SHLIB_PATH
(adding or removing
# the lib64, I can't remember)

export
LD_LIBRARY_PATH=/opt/oracle/product/8.1.7/lib64:/opt/oracle/product/8.1.7/rd
bms/lib:/usr/lib
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/8.1.7
export ORACLE_SID=o817
export ORAENV_ASK=YES
export PATH=$ORACLE_HOME/bin:$PATH
export
SHLIB_PATH=/opt/oracle/product/8.1.7/lib:/opt/oracle/product/8.1.7/rdbms/lib
:/usr/lib
export ORACLE_USERID=system/manager

cd /opt/perl/src
gunzip -c DBD-Oracle-1.08.tar.gz | tar xvf -
cd DBD-Oracle-1.08
perl Makefile.PL
make test install
make test
make install





----- Original Message -----
From: "Taylor Lewick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 10:04 AM
Subject: DBD-Oracle-1.12 on HPUX 11.00 not passing make test.


Hello all.  I could really use some help.  I have successfully installed the
perl-DBD for Oracle under Hp-UX before, but am coming up short this time. I
installed Perl5.6.1 on an HP-UX 11.00 box, 32 bit PA-RISC1.1 (dynamic
build).  Also successfully instaled DBI-1.20.  When I tried to install
DBD-Oracle-1.12 the Perl Makfile.PL and make work, but the make test fails.
It comlpains about dld.sl and libwtc8.sl.  I have not seen this before.  I
have included the output of the perl Makefile.PL and make, as well as the
failure of make test.  Any help is greatly appreciated.

make test
        PERL_DL_NONLAZY=1
/usr/bin/perl -Iblib/arch -Iblib/lib -I/opt/perl5/lib/5.6.1/PA-RISC1.1 -I/op
t/perl5/lib/5.6.1 -e 'use Test::Harness
qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base............../usr/lib/dld.sl: Can't open shared library:
/project/hpux/817/src_final/lib//libwtc8.sl
/usr/lib/dld.sl: No such file or directory
t/base..............ok 1/5
t/base..............ok 2/5
t/base..............ok 3/5
t/base..............FAILED tests 4-5
        Failed 2/5 tests, 60.00% okay
t/general.........../usr/lib/dld.sl: Can't open shared library:
/project/hpux/817/src_final/lib//libwtc8.sl
/usr/lib/dld.sl: No such file or directory
install_driver(Oracle) failed: Can't load
'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: No such file
or directory at /opt/perl
5/lib/5.6.1/PA-RISC1.1/DynaLoader.pm line 206.
at (eval 1) line 3
Compilation failed in require at (eval 1) line 3.
Perhaps a required shared library or dll isn't installed where expected
at t/general.t line 20
t/general...........dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/long............../usr/lib/dld.sl: Can't open shared library:
/project/hpux/817/src_final/lib//libwtc8.sl
/usr/lib/dld.sl: No such file or directory
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: No
such file or directory at /opt/perl5/lib/5.6.1/PA-RISC1.1/DynaLoad
er.pm line 206.
at t/long.t line 4
Compilation failed in require at t/long.t line 4.
BEGIN failed--compilation aborted at t/long.t line 4.
t/long..............dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/ph_type.........../usr/lib/dld.sl: Can't open shared library:
/project/hpux/817/src_final/lib//libwtc8.sl
/usr/lib/dld.sl: No such file or directory
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: No
such file or directory at /opt/perl5/lib/5.6.1/PA-RISC1.1/DynaLoad
er.pm line 206.
at t/ph_type.t line 20
Compilation failed in require at t/ph_type.t line 20.
BEGIN failed--compilation aborted at t/ph_type.t line 20.
t/ph_type...........dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/plsql............./usr/lib/dld.sl: Can't open shared library:
/project/hpux/817/src_final/lib//libwtc8.sl
/usr/lib/dld.sl: No such file or directory
Can't load 'blib/arch/auto/DBD/Oracle/Oracle.sl' for module DBD::Oracle: No
such file or directory at /opt/perl5/lib/5.6.1/PA-RISC1.1/DynaLoad
er.pm line 206.
at t/plsql.t line 17
Compilation failed in require at t/plsql.t line 17.
BEGIN failed--compilation aborted at t/plsql.t line 17.
t/plsql.............dubious
        Test returned status 255 (wstat 65280, 0xff00)
t/reauth............skipped test on this platform
Failed Test Status Wstat Total Fail  Failed  List of Failed
----------------------------------------------------------------------------
------------------------------------------------------------------
t/base.t                       5    2  40.00%  4-5
t/general.t      255 65280    ??   ??       %  ??
t/long.t         255 65280    ??   ??       %  ??
t/ph_type.t      255 65280    ??   ??       %  ??
t/plsql.t        255 65280    ??   ??       %  ??
1 test skipped.
Failed 5/6 test scripts, 16.67% okay. 2/5 subtests failed, 60.00% okay.
*** Error exit code 2

Stop.
script done on Thu Jan 10 15:51:06 2002

Output of perl -V

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC1.1
    uname='hp-ux u3dss03 b.11.00 a 9000887 1492389211 two-user license '
    config_args='-Ubincompat5005'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags =' +z -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -Ae',
    optimize='-O',
    cppflags='+z'
    ccversion='B.11.11.02', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long',
lseeksize=4
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib




libs=-lcl -lpthread -lnsl -lnm -lndbm -lmalloc -ldld -lm -lc -lndir -lcrypt 
-lsec




perllibs=-lcl -lpthread -lnsl -lnm -lmalloc -ldld -lm -lc -lndir -lcrypt -ls
ec
    libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl..a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef,
ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under hpux
  Compiled at Jan  1 2002 12:30:25
  @INC:
    /opt/perl5/lib/5.6.1/PA-RISC1.1
    /opt/perl5/lib/5.6.1
    /opt/perl5/lib/site_perl/5.6.1/PA-RISC1.1
    /opt/perl5/lib/site_perl/5.6.1
    /opt/perl5/lib/site_perl


Taylor Lewick
Unix System Administrator
Fortis Benefits
816 881 6073

"Help Wanted.  Seeking Telepath..."
"You Know where to apply."

****************************************************************
Please Note
The information in this E-mail message is legally privileged
and confidential information intended only for the use of the
individual(s) named above. If you, the reader of this message,
are not the intended recipient, you are hereby notified that
you should not further disseminate, distribute, or forward this
E-mail message. If you have received this E-mail in error,
please notify the sender. Thank you
*****************************************************************



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to