求助:AIX下怎么安装DBI + DBD-Oracle ?

求助:AIX下怎么安装DBI + DBD-Oracle ?

机器:AIX 5.3 + xlc 编译器 + perl5.8.2 + Oracle 10g

小弟要安装DBI + DBD-Oracle, 总是不成功。
现在DBI安装好了,DBD-Oracle在make的时候报错,且已经按照网上材料在Makefile中删掉了-q32,并且/lib32时正确的。

cc_r -c  -I/oracle/product/10.2.0/db_1/rdbms/public -I/oracle/product/10
.2.0/db_1/rdbms/demo -I/oracle/product/10.2.0/db_1/rdbms/public -I/oracle/produc
t/10.2.0/db_1/plsql/public -I/oracle/product/10.2.0/db_1/network/public -I/usr/o
pt/perl5/lib/site_perl/5.8.2/aix-thread-multi/auto/DBI  -D_ALL_SOURCE -D_ANSI_C_
SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_P
THREAD_INIT  -D_LARGE_FILES -qlonglong -O    -DVERSION=\"1.19\"  -DXS_VERSION=\"
1.19\"  "-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE"  -DUTF8_SUPPORT -DNEW
_OCI_INIT -DORA_OCI_VERSION=\"10.2.0.1\" dbdimp.c
"dbdimp.c", line 1982.18: 1506-046 (S) Syntax error.
"dbdimp.c", line 1982.56: 1506-045 (S) Undeclared identifier undef.
cc_r: 1501-230 Internal compiler error; please contact your Service Representative
make: 1254-004 The error code from the last command is 41.

现在想用xlc重建perl试一试, 哪位大大能给出详细命令啊?
小弟用xlc编译安装了perl5.8.8, 并且成功安装了DBI-1.602,版本如下:
# perl -V
Summary of my perl5 (revision 5 version 8 subversion configuration:
  Platform:
    osname=aix, osvers=5.3.0.0, archname=aix-thread-multi
    uname='aix localhost 3 5 00070c5cd700 '
    config_args='-dedes -Dprefix=/etl/perl5 -Dusethreads -Uinstalluserbinperl'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=de
fine
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem
=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -q
longlong',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoans
ialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT'
    ccversion='7.0.0.0', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize
=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -brtl -bdynamic -bmaxdata:0x80000000 -b32'
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd
    perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd
    libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -bE:/etl/perl5/lib/
5.8.8/aix-thread-multi/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bexpall -G -bnoentry -lpthreads -lc'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API
  Built under aix
  Compiled at Feb 21 2008 08:01:14
  @INC:
    /etl/perl5/lib/5.8.8/aix-thread-multi
    /etl/perl5/lib/5.8.8
    /etl/perl5/lib/site_perl/5.8.8/aix-thread-multi
    /etl/perl5/lib/site_perl/5.8.8
    /etl/perl5/lib/site_perl
    .

DBD-Oracle-1.19在make时报错,错误还是原来的。
现在了解到我的oracle版本是64位的,那cc_r要不要使用q64呢?
Oracle没安装过..
64bit AIX 安装程序问题..可以试着
export OBJECT_MODE=64
然後编译.....
注意看看DBD::Oracle的README/INSTALL , 看看你少装了什麽软件...
你有安装oracle client sdk吗?