When installing, I try the tests and they fail with the following error:
Failed to load Oracle extension and/or shared libraries:
install_driver(Oracle) failed: Can't load
'blib/arch/auto/DBD/Oracle/Oracle.so' for module
DBD::Oracle: dlopen: cannot load blib/arch/auto/DBD/Oracle/Oracle.so at
/usr/local/lib/perl
5/5.6.1/alpha-dec_osf/DynaLoader.pm line 206.
at (eval 1) line 3
I've tried 'perl Makefile.PL -nob' and 'perl Makefile.PL -p' to no avail. Do
I have to force a 'static' build?
_______________________
Peter Corrigan
NUI Galway
Office: +353-91-524411 ext 2497
Mobile: +353-87-2798505
bash# perl Makefile.PL -8 -v
Multiple copies of Driver.xst found in:
/usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf/
auto/DBI /usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf/auto/DBI at
Makefile.PL line 36
Using DBI 1.21 installed in
/usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf/auto/DBI
Configuring DBD::Oracle ...
>>> Remember to actually *READ* the README file!
Especially if you have any problems.
Using Oracle in /aleph/app/oracle/product/806
4.0.3.0.0 Oracle Unix Installer
1.0.1.0.0 Oracle On-Line Text Viewer
8.0.6.0.0 Ordts Common Libraries
8.0.6.0.0 ORACLE NLS Libraries and Utilities
8.0.6.0.0 ORACLE Core Libraries
8.0.6.0.0 ORACLE Common RDBMS Libraries and Utilities
8.0.6.0.0 ORACLE PL/SQL Libraries
8.0.6.0.0 ORACLE Common Libraries
8.0.6.0.0 ORACLE Common Precomp Libraries
8.0.6.0.0 ORACLE Common Network Libraries and Utilities
8.0.6.0.0 ORACLE Common Trace Libraries
8.0.6.0.0 ORACLE Common Utilities
8.0.6.0.0 ORACLE Common Agent Libraries
8.0.6.0.0 ORACLE Common Libraries and Utilities
8.0.6.0.0 Platform specific Libraries and Utilities
8.0.6.0.0 Net8
8.0.6.0.0 TCP/IP Protocol Adapter
3.0.2.0.0 Remote Operations
8.0.6.0.0 Oracle Names
8.0.6.0.0 PL/SQL
3.0.6.0.0 Oracle Server Manager
8.0.6.0.0 Oracle8 Enterprise (RDBMS)
1.0.0.0.1 <Database Startup> Load Files
4.0.0 Oracle Trace
8.0.6.0.0 Precomp
8.0.6.0.0 Pro*C/C++
8.0.6.0.0 Oracle8 JDBC Drivers
8.0.6.0.0 SQL*Plus
Found rdbms/demo/ocidef.h
Found rdbms/demo/ocidfn.h
Found rdbms/demo/ocidem.h
Found rdbms/demo/ociapr.h
Found rdbms/demo/ocikpr.h
Found rdbms/demo/oratypes.h
Found header files in rdbms/demo.
Found /aleph/app/oracle/product/806/rdbms/demo/demo_rdbms.mk
Found /aleph/app/oracle/product/806/otrace/de
Found /aleph/app/oracle/product/806/precomp/d
Using /aleph/app/oracle/product/806/rdbms/dem
Reading /aleph/app/oracle/product/806/rdbms/demo/demo_rdbms.mk.
Reading /aleph/app/oracle/product/806/rdbms/lib/env_rdbms.mk.
Read a total of 692 lines from
/aleph/app/oracle/product/806/rdbms/lib/env_rdbms.mk (includ
ing inclusions)
Read a total of 873 lines from
/aleph/app/oracle/product/806/rdbms/demo/demo_rdbms.mk (incl
uding inclusions)
Deleted SHELL definition: SHELL=/bin/sh
Deleted LIB_EXT definition: LIB_EXT=a
Deleted OBJ_EXT definition: OBJ_EXT=o
Deleted AR definition: AR=ar
Deleted AS definition: AS=as
Deleted CC definition: CC=cc
Deleted CHMOD definition: CHMOD=chmod
Deleted CPP definition: CPP=cpp
Deleted ECHO definition: ECHO=echo
Deleted LD definition: LD=ld
Deleted PERL definition: PERL=perl
Deleted CFLAGS definition: CFLAGS=$(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS)
$(QACCFLAGS) $(
PFLAGS)\
$(SHARED_CFLAG) $(USRFLAGS)
Deleted LDFLAGS definition: LDFLAGS=-o $@ -L$(PRODLIBHOME) -L$(LIBHOME)
Deleted CCFLAGS definition: CCFLAGS=$(GEMC_FLAGS)
$(ANSI_C) -DOSF1 -DA_OSF -Wf,-readonly_st
rings -noansi_alias -D_INTRINSICS $(OM_FLAGS)
CPP macro redefined by Oracle
from cpp
to $(CC) -E $(CCFLAGS)
Deleted CPP definition: CPP=$(CC) -E $(CCFLAGS)
Deleted OPTIMIZE definition:
OPTIMIZE=$(CDEBUG?:-O4 -fast -fp_reorder -U_FASTMATH)
DOAR macro redefined by Oracle
from $(ARCREATE) $@ $? $(RANLIB)
to $(AR) cr$(ARLOCAL) $(LIB) $(OBJS)
Deleted PERL definition: PERL = perl
Deleted ASFLAGS definition: ASFLAGS=$(CDEBUG)
AS macro redefined by Oracle
from as
to as
Deleted AS definition: AS=as
Deleted LD definition: LD=ld
LDFLAGS macro redefined by Oracle
from -o $@ -L$(PRODLIBHOME) -L$(LIBHOME)
to $(LDOPTIMIZE) $(SHARED_FLAG) -o $@ $(PRODUCT_LIBHOME) -L$(LIBHOME)
$(NO_STRIP_EXE?:-s
)
Deleted LDFLAGS definition: LDFLAGS = $(LDOPTIMIZE) $(SHARED_FLAG) -o $@
$(PRODUCT_LIBHOME)
-L$(LIBHOME) $(NO_STRIP_EXE?:-s)
LDCCOM macro redefined by Oracle
from $(PURECMDS) $(CC) $(GFLAG) $(CCFLAGS) $
to $(CC) $(GFLAG) $(CDEBUG) $(CCFLAGS) $(LDFLAGS)
TTLIBS macro redefined by Oracle
from $(LLIBCLNTSH) $(STATICTTLIBS)
to $(STATICTTLIBS)
Deleting ORA_NLS = $(ORACLE_HOME)/ocommon/nls/admin/data/
because it is not already set in the environment
and it can cause ORA-01019 errors.
Deleted ORA_NLS definition: ORA_NLS = $(ORACLE_HOME)/ocommon/nls/admin/data/
Deleting ORA_NLS33 = $(ORACLE_HOME)/ocommon/n
because it is not already set in the environment
and it can cause ORA-01019 errors.
Deleted ORA_NLS33 definition: ORA_NLS33 =
$(ORACLE_HOME)/ocommon/nls/admin/data/
SSORED macro redefined by Oracle
from $(RDBMSLIB)ssoraed.$(OBJ_EXT)
to $(RDBMSLIB)ssoraed.$(OBJ_EXT) # oracle prog. mgr.
data
MTS_NCR macro redefined by Oracle
from $(LIBHOME)ncrstab.$(OBJ_EXT)
to ncrstab.$(OBJ_EXT)
SKGXND macro redefined by Oracle
from $(RDBMSLIB)skgxnd.$(OBJ_EXT)
to $(SKGXNS)
LIBDLM macro redefined by Oracle
from $(SKGXN) $(LIBHOME)libudlm.$(LIB_EXT)
to $(CLUSTERDIR)libdlm.$(LIB_EXT)
LLIBDLM macro redefined by Oracle
from $(SKGXN) -ludlm
to $(SKGXN) -ldlm -lcnx -lssn
RDBMSLIB macro redefined by Oracle
from $(RDBMSHOME)lib/
to $(ORACLE_HOME)/rdbms/lib/
LDFLAGS macro redefined by Oracle
from $(LDOPTIMIZE) $(SHARED_FLAG) -o $@ $(PR
)
to -L$(LIBHOME) -L$(ORACLE_HOME)/rdbms/lib
Deleted LDFLAGS definition: LDFLAGS=-L$(LIBHO
CONFIG macro redefined by Oracle
from $(RDBMSLIB)config.$(OBJ_EXT)
to $(ORACLE_HOME)/rdbms/lib/config.o
Attempting to discover Oracle OCI build rules...
cc -c DBD_ORA_OBJ.c
by executing:
make -f /aleph/app/oracle/product/806/rdbms/demo/demo_rdbms.mk build
ECHODO=true ECHO=echo
GENCLNTSH='echo genclntsh' CC=echo OPTIMIZE= CCFLAGS= EXE=DBD_ORA_EXE
OBJS=DBD_ORA_OBJ.o
Oracle oci build command:
true
echo -L/aleph/app/oracle/product/806/lib/ -L/aleph/app/oracle/product/806/rd
bm
s/lib -o DBD_ORA_EXE DBD_ORA_OBJ.o -lclntsh
System: perl5.006001 osf1 opac v5.0 910 alpha
Compiler: cc -O4 -std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C
Linker: /bin/ld
Sysliblist: -lexc -lmld -lrt -laio -lm
Oracle makefiles would have used these definitions but we override them:
CC: cc
CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS)
$(PFLAGS)\
$(SHARED_CFLAG) $(USRFLAGS)
[$(GFLAG) -O4 -fast -fp_reorder -U_FASTMATH -O4 -fast -fp_reorder -U_FASTMAT
H $(
GEMC_FLAGS) -std1 -DOSF1 -DA_OSF -Wf,-readonly_strings -noansi_alias -D_INTR
INSICS $(QACCFL
AGS) -I/aleph/app/oracle/product/806/rdbms/demo -I/aleph/app/oracle/product/
806/rdbms/publi
c -I/aleph/app/oracle/product/806/plsql/public -I/aleph/app/oracle/product/8
06/network/publ
ic $(LPFLAGS) $(SHARED_CFLAG) $(USRFLAGS)]
LDFLAGS: -L$(LIBHOME) -L$(ORACLE_HOME)/rdbms/lib
[-L$(LIBHOME) -L/aleph/app/oracle/product/806/rdbms/lib]
Linking with OTHERLDFLAGS
= -L/aleph/app/oracle/product/806/lib/ -L/aleph/app/oracle/produc
t/806/rdbms/lib -lclntsh [from 'build' rule]
Warning: If you have problems you may need to rebuild perl
with -Uusemymalloc.
MakeMaker (v5.45)
Checking if your kit is complete...
Looks good
ABSTRACT_FROM => q[Oracle.pm]
AUTHOR => q[Tim Bunce ([EMAIL PROTECTED])]
DEFINE => q[ -DNO_OCI8]
DIR => []
EXE_FILES => [q[ora_explain]]
INC =>
q[-I/aleph/app/oracle/product/806/rdbms/demo -I/aleph/app/oracle/product/806
/rdbms/public -I/aleph/app/oracle/product/806/plsql/public -I/aleph/app/orac
le/product/806/
network/public -I/aleph/app/oracle/product/806/rdbms/demo -I/aleph/app/oracl
e/product/806/r
dbms/demo -I/usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf/auto/DBI]
NAME => q[DBD::Oracle]
OBJECT => q[$(O_FILES)]
PREREQ_PM => { DBI=>q[0] }
VERSION_FROM => q[Oracle.pm]
clean => { FILES=>q[Oracle.xsi dll.base dll.exp sqlnet.log
libOracle.def ora_explai
n mk.pm] }
dist => { DIST_DEFAULT=>q[clean distcheck disttest ci tardist],
PREOP=>q[$(MAKE) -f
Makefile.old distdir], COMPRESS=>q[gzip -v9], SUFFIX=>q[gz] }
dynamic_lib => {
OTHERLDFLAGS=>q[ -L/aleph/app/oracle/product/806/lib/ -L/aleph/app
/oracle/product/806/rdbms/lib -lclntsh] }
Using PERL=/bin/perl
Note: $ORACLE_HOME/lib must be added to your LD_LIBRARY_PATH environment
variable
before running "make test" and whenever DBD::Oracle is used.
LD_RUN_PATH=/aleph/app/oracle/product/806/lib:/aleph/app/oracle/product/806/
rdbms/lib
Using DBD::Oracle 1.12.
Multiple copies of Driver.xst found in:
/usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf/
auto/DBI /usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf/auto/DBI at
Makefile.PL line 11
36
Using DBI 1.21 installed in
/usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf/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?)
bash#
bash# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=dec_osf, osvers=5.0, archname=alpha-dec_osf
uname='osf1 opac v5.0 910 alpha '
config_args='-de'
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=define use64bitall=define uselongdouble=undef
Compiler:
cc='cc', ccflags ='-std -fprm d -ieee -D_INTRINSICS -DLANGUAGE_C',
optimize='-O4',
cppflags='-std -ieee -D_INTRINSICS -DLANGUAGE_C'
ccversion='V6.1-015', gccversion='', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='ld', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc
/usr/lib /var/shlib
libs=-ldbm -ldb -lm -liconv -lutil
perllibs=-lm -liconv -lutil
libc=/usr/shlib/libc.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
cdlflags=' -Wl,-rpath,/usr/local/lib/p
erl5/5.6.1/alpha-dec_osf/CORE'
cccdlflags=' ', lddlflags='-shared -expect_unresolved
"*" -O4 -msym -std -s -L/usr/loca
l/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
Built under dec_osf
Compiled at Mar 5 2002 20:47:03
@INC:
/usr/local/lib/perl5/5.6.1/alpha-dec_osf
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/alpha-dec_osf
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl/5.6.0/alpha-dec_osf
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl