Subject: | Install impossible |
PERL Version : 5.8.7
Oracle Version : 7.3.4
According to the table in the address :
http://search.cpan.org/~pythian/DBD-Oracle-
1.27/Oracle.pm#Which_version_DBD::Oracle_is_for_me?
I have to install DBD::Oracle Version 1.16.
I can't find oldest version of this library.
I've modified Makefile.PL to remove the test about the Oracle's version.
I've taken some files such oci.h, oro.h, ... on a directory of an
Oracle 9iAS and put them into the $ORACLE_HOME directory.
Here are the results :
enzo,root:/usr/local/lib/perl5/5.8.7/DBD-Oracle-1.17>perl Makefile.PL
Using DBI 1.615 (for perl 5.008007 on sun4-solaris) installed
in /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/DBI/
Configuring DBD::Oracle for perl 5.008007 on solaris (sun4-solaris)
Remember to actually *READ* the README file! Especially if you have any
problems.
Using Oracle in /s01/app/oracle/product/7.3.4
symbol _sqlplus_release is UNDEFINED
If sqlplus failed due to a linker/symbol/relocation/library
error or similar problem
then it's likely that you've not configured your
environment correctly.
Specifically, your LD_LIBRARY_PATH environment variable
set to include the directory containing the Oracle
libraries.
7.3.4.0.0 Oracle Common RDBMS Libraries and Utilities
7.3.4.0.0 ORACLE PL/SQL Libraries
7.3.4.0.0 ORACLE Common Precomp Libraries
2.3.4.0.0 PL/SQL V2
7.3.4.0.1 Oracle7 Server (RDBMS)
7.3.4.0.0 Precomp
2.2.4.0.0 Pro*C
1.5.6.15.0 PL/SQL Procedure Builder
Oracle version 7.3.4 (7.3)
Found /s01/app/oracle/product/7.3.4/rdbms/demo/oracle.mk
Found /s01/app/oracle/product/7.3.4/precomp/demo/proc/proc.mk
Using /s01/app/oracle/product/7.3.4/rdbms/demo/oracle.mk
Your LD_LIBRARY_PATH env var is set to ''
WARNING: Your LD_LIBRARY_PATH env var doesn't
include '/s01/app/oracle/product/7.3.4/lib' but probably needs to.
Reading /s01/app/oracle/product/7.3.4/rdbms/demo/oracle.mk
Reading /s01/app/oracle/product/7.3.4/rdbms/lib/env_rdbms.mk
Attempting to discover Oracle OCI build rules
gcc -B/usr/ccs/bin/ -c DBD_ORA_OBJ.c
by executing: [make -
f /s01/app/oracle/product/7.3.4/rdbms/demo/oracle.mk build ECHODO=echo
ECHO=echo GENCLNTSH='echo genclntsh' CC]
Oracle oci build command:
[true -L/s01/app/oracle/product/7.3.4/lib -
L/s01/app/oracle/product/7.3.4/rdbms/lib -o DBD_ORA_EXE
DBD_ORA_OBJ.o /s01/app/o]
Found header files in /s01/app/oracle/product/7.3.4/rdbms/demo.
Checking for functioning wait.ph
System: perl5.008007 sunos 5.7 generic_patch sun4u sparc sunw,ultra-1
solaris
Compiler: gcc -B/usr/ccs/bin/ -O -fno-strict-aliasing -pipe -
I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
Linker: /usr/ccs/bin/ld
Sysliblist: -lsocket -lnsl -lm -ldl -lposix4
Oracle makefiles would have used these definitions but we override them:
CC: /opt/SUNWspro4.2/SUNWspro/bin/cc
CFLAGS: $(GFLAG) $(OPTIMIZE) $(CDEBUG) $(CCFLAGS) $(QACCFLAGS)
$(PFLAGS) $(SHARED_CFLAG) $(ENV_FLAGS)
[$(GFLAG) -xO2 $(CDEBUG) -Xa -xstrconst -xcg92 -xF -mr -K
PIC -DSLXMX_ENABLE -DSLTS_ENABLE -D_REENTRANT $(QACCFLAGS) -I/]
CLIBS: $(LOCALLIBS) $(EXOSLIBS) $(LIBBSD) $(OTHERLIBS) $(SECLIBS)
$(M6LIBS)
[ -lsocket -lnsl -lm -ldl -lposix4 -
R /opt/SUNWcluster/lib:/usr/dt/lib:/s01/app/oracle/product/7.3.4/lib -Y
P,$(LD_LIBRA]
LDFLAGS: -L$(LIBHOME) -L$(ORACLE_HOME)/rdbms/lib
[-L$(LIBHOME) -L/s01/app/oracle/product/7.3.4/rdbms/lib]
LDSTRING: -R /opt/SUNWcluster/lib:/usr/dt/lib:$(ORACLE_HOME)/lib \
-Y
P,$(LD_LIBRARY_PATH):/opt/SUNWcluster/lib:/usr/ccs/lib:/usr/lib \
-Qy -lc
[-
R /opt/SUNWcluster/lib:/usr/dt/lib:/s01/app/oracle/product/7.3.4/lib -Y
P,$(LD_LIBRARY_PATH):/opt/SUNWcluster/lib:/usr]
Linking with OTHERLDFLAGS = -L/s01/app/oracle/product/7.3.4/lib -
L/s01/app/oracle/product/7.3.4/rdbms/lib /s01/app/oracle/product]
WARNING: If you have problems you may need to rebuild perl with
threading enabled.
Checking if your kit is complete...
Looks good
LD_RUN_PATH=/s01/app/oracle/product/7.3.4/lib:/s01/app/oracle/product/7.
3.4/rdbms/lib
Using DBD::Oracle 1.17.
Using DBD::Oracle 1.17.
Using DBI 1.615 (for perl 5.008007 on sun4-solaris) installed
in /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/DBI/
Writing Makefile for DBD::Oracle
*** If you have problems...
read all the log printed above, and the README and README.help.txt
files.
(Of course, you have read README by now anyway, haven't you?)
enzo,root:/usr/local/lib/perl5/5.8.7/DBD-Oracle-1.17>make
cp Oracle.pm blib/lib/DBD/Oracle.pm
cp oraperl.ph blib/lib/oraperl.ph
cp dbdimp.h blib/arch/auto/DBD/Oracle/dbdimp.h
cp ocitrace.h blib/arch/auto/DBD/Oracle/ocitrace.h
cp Oraperl.pm blib/lib/Oraperl.pm
cp Oracle.h blib/arch/auto/DBD/Oracle/Oracle.h
cp lib/DBD/Oracle/GetInfo.pm blib/lib/DBD/Oracle/GetInfo.pm
cp mk.pm blib/arch/auto/DBD/Oracle/mk.pm
/usr/local/bin/perl -p -
e "s/~DRIVER~/Oracle/g" /usr/local/lib/perl5/site_perl/5.8.7/sun4-
solaris/auto/DBI/Driver.xst > Oracle.xsi
/usr/local/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -
typemap /usr/local/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemc
gcc -B/usr/ccs/bin/ -c -I/s01/app/oracle/product/7.3.4/rdbms/demo -
I/s01/app/oracle/product/7.3.4/rdbms/demo -I/s01/app/oracle/proc
In file included
from /s01/app/oracle/product/7.3.4/rdbms/demo/oci.h:1010,
from dbdimp.h:39,
from Oracle.h:15,
from Oracle.xs:1:
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:5976: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:5987: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:5995: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:5999: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6008: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6057: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6085: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6128: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6141: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6191: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6220: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6232: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6240: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6499: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6502: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6507: error: parse
error before "OraText"
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6525: error: parse
error before '*' token
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6540: error: parse
error before '*' token
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6555: error: parse
error before '*' token
/s01/app/oracle/product/7.3.4/rdbms/demo/ociap.h:6580: error: parse
error before "OraText"
Oracle.xs: In function `XS_DBD__Oracle__db_ora_lob_write':
Oracle.xs:152: error: `SQLCS_IMPLICIT' undeclared (first use in this
function)
Oracle.xs:152: error: (Each undeclared identifier is reported only once
Oracle.xs:152: error: for each function it appears in.)
Oracle.xs:175: error: `SQLCS_NCHAR' undeclared (first use in this
function)
Oracle.xs: In function `XS_DBD__Oracle__db_ora_lob_append':
Oracle.xs:206: error: `SQLCS_IMPLICIT' undeclared (first use in this
function)
Oracle.xs:229: error: `SQLCS_NCHAR' undeclared (first use in this
function)
Oracle.xs: In function `XS_DBD__Oracle__db_ora_lob_read':
Oracle.xs:283: error: `SQLCS_IMPLICIT' undeclared (first use in this
function)
Oracle.xs:310: error: `SQLCS_NCHAR' undeclared (first use in this
function)
Oracle.c: In function `boot_DBD__Oracle':
Oracle.c:1606: error: `SQLCS_IMPLICIT' undeclared (first use in this
function)
Oracle.c:1618: error: `SQLCS_NCHAR' undeclared (first use in this
function)
*** Error code 1
make: Fatal error: Command failed for target `Oracle.o'
Somebody can help me ???
Thank you.