Apologies for answering my own post, but I found this :

http://blacka.com/david/2008/11/12/how-to-install-dbdoracle-on-mac-os-x/

It seems to do the job.

Steve

On 04/04/2009, at 7:28 AM, Steve Baldwin wrote:

Has no-one got DBD::Oracle 1.22 running on OS/X Leopard?

Steve

On 02/04/2009, at 10:47 AM, Steve Baldwin wrote:

I'm attempting to build DBD::Oracle for the first time on a Mac. Not much luck so far.

I'm attempting to build using the latest Instant Client. Here's what happens ...

stbaldwins-macbook-pro:DBD-Oracle-1.22-DQ1QKH root# perl Makefile.PL
Using DBI 1.52 (for perl 5.008008 on darwin-thread-multi-2level) installed in /System/Library/Perl/Extras/5.8.8/darwin-thread- multi-2level/auto/DBI/

Configuring DBD::Oracle for perl 5.008008 on darwin (darwin-thread- multi-2level)

Remember to actually *READ* the README file! Especially if you have any problems.

Installing on a darwin, Ver#9.0
Using Oracle in /var/oracle/instantclient_10_2
DEFINE _SQLPLUS_RELEASE = "1002000400" (CHAR)
Oracle version 10.2.0.4 (10.2)
Looks like an Instant Client installation, okay
Your DYLD_LIBRARY_PATH env var is set to '/var/oracle/ instantclient_10_2:'
Oracle sysliblist:
Found header files in /var/oracle/instantclient_10_2/sdk/include.

Checking for functioning wait.ph


System: perl5.008008 darwin b04.apple.com 9.0 darwin kernel version 9.3.0: tue aug 12 17:18:07 pdt 2008; root:xnu-1228.5.90~13release_i386 i386 Compiler: cc -O3 -arch i386 -arch ppc -g -pipe -fno-common - DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration- after-statement -I/usr/local/include
Linker:     /usr/bin/ld
Sysliblist:
Linking with -lclntsh.

Checking if your kit is complete...
Warning: the following files are missing in your kit:
        META.yml
Please inform the author.
LD_RUN_PATH=/var/oracle/instantclient_10_2
Using DBD::Oracle 1.22.
Using DBD::Oracle 1.22.
Using DBI 1.52 (for perl 5.008008 on darwin-thread-multi-2level) installed in /System/Library/Perl/Extras/5.8.8/darwin-thread- multi-2level/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?)

stbaldwins-macbook-pro:DBD-Oracle-1.22-DQ1QKH root# 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/bin/perl -p -e "s/~DRIVER~/Oracle/g" /System/Library/Perl/ Extras/5.8.8/darwin-thread-multi-2level/auto/DBI/Driver.xst > Oracle.xsi /usr/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp -typemap / System/Library/Perl/5.8.8/ExtUtils/typemap -typemap typemap Oracle.xs > Oracle.xsc && mv Oracle.xsc Oracle.c cc -c -I/var/oracle/instantclient_10_2/sdk/include -I/System/ Library/Perl/Extras/5.8.8/darwin-thread-multi-2level/auto/DBI -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp - fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/ include -O3 -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" "-I/System/ Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" -Wall -Wno- comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION= \"10.2.0.4\" Oracle.c cc -c -I/var/oracle/instantclient_10_2/sdk/include -I/System/ Library/Perl/Extras/5.8.8/darwin-thread-multi-2level/auto/DBI -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp - fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/ include -O3 -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" "-I/System/ Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" -Wall -Wno- comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION= \"10.2.0.4\" dbdimp.c
dbdimp.c: In function ‘createxmlfromstring’:
dbdimp.c:1077: warning: passing argument 4 of ‘OCILobWriteAppend’ from incompatible pointer type
dbdimp.c: In function ‘createxmlfromstring’:
dbdimp.c:1077: warning: passing argument 4 of ‘OCILobWriteAppend’ from incompatible pointer type
dbdimp.c: In function ‘ora_st_execute_array’:
dbdimp.c:3328: warning: unused variable ‘sv2’
dbdimp.c: In function ‘ora_st_execute_array’:
dbdimp.c:3328: warning: unused variable ‘sv2’
cc -c -I/var/oracle/instantclient_10_2/sdk/include -I/System/ Library/Perl/Extras/5.8.8/darwin-thread-multi-2level/auto/DBI -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp - fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/ include -O3 -DVERSION=\"1.22\" -DXS_VERSION=\"1.22\" "-I/System/ Library/Perl/5.8.8/darwin-thread-multi-2level/CORE" -Wall -Wno- comment -DUTF8_SUPPORT -DNEW_OCI_INIT -DORA_OCI_VERSION= \"10.2.0.4\" oci8.c
Running Mkbootstrap for DBD::Oracle ()
chmod 644 Oracle.bs
rm -f blib/arch/auto/DBD/Oracle/Oracle.bundle
LD_RUN_PATH="/var/oracle/instantclient_10_2" cc -mmacosx-version- min=10.5.6 -arch i386 -arch ppc -bundle -undefined dynamic_lookup - L/usr/local/lib Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/ Oracle/Oracle.bundle \
           -L/var/oracle/instantclient_10_2 -lclntsh    \
        
ld warning: in /var/oracle/instantclient_10_2/libclntsh.dylib, file is not of required architecture
chmod 755 blib/arch/auto/DBD/Oracle/Oracle.bundle
nmedit -R ./hints/macos_bundle.syms blib/arch/auto/DBD/Oracle/ Oracle.bundle || true nmedit: symbols names listed in: ./hints/macos_bundle.syms not in: / Users/stbaldwin/.cpan/build/DBD-Oracle-1.22-DQ1QKH/blib/arch/auto/ DBD/Oracle/Oracle.bundle (for architecture i386)
_kpuach
_kpuasav
_kpucer
_kpudbcx
_kpudc
_kpudcx
_kpuddb
_kpudex
_kpudsc
_kpuexes
_kpugbccx
_kpugbncx
_kpugc
_kpugdcx
_kpugml
_kpuic
_kpuicx
_kpulsc
_kpumcf
_kpusdl
_kpusdt
_kpusnchr
_kpusvar
_main
nmedit: symbols names listed in: ./hints/macos_bundle.syms not in: / Users/stbaldwin/.cpan/build/DBD-Oracle-1.22-DQ1QKH/blib/arch/auto/ DBD/Oracle/Oracle.bundle (for architecture ppc7400)
_kpuach
_kpuasav
_kpucer
_kpudbcx
_kpudc
_kpudcx
_kpuddb
_kpudex
_kpudsc
_kpuexes
_kpugbccx
_kpugbncx
_kpugc
_kpugdcx
_kpugml
_kpuic
_kpuicx
_kpulsc
_kpumcf
_kpusdl
_kpusdt
_kpusnchr
_kpusvar
_main
cp Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs
chmod 644 blib/arch/auto/DBD/Oracle/Oracle.bs
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" ora_explain.PL ora_explain
Extracted ora_explain from ora_explain.PL with variable substitutions.
cp ora_explain blib/script/ora_explain
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/ ora_explain
Manifying blib/man1/ora_explain.1
Manifying blib/man3/DBD::Oracle.3pm
Manifying blib/man3/DBD::Oraperl.3pm

I tried solution 2a) from the Readme and got this :

tbaldwins-macbook-pro:DBD-Oracle-1.22-DQ1QKH root# nmedit -R hints/ macos_lib.syms /var/oracle/instantclient_10_2/libclntsh.dylib.10.1 nmedit: symbols names listed in: hints/macos_lib.syms not in: / private/var/oracle/instantclient_10_2/libclntsh.dylib.10.1
_dlclose
_dlsym
_poll


Can anyone help?

Thanks,

Steve
This email is intended solely for the use of the addressee and may
contain information that is confidential, proprietary, or both.
If you receive this email in error please immediately notify the
sender and delete the email.



This email is intended solely for the use of the addressee and may
contain information that is confidential, proprietary, or both.
If you receive this email in error please immediately notify the
sender and delete the email.



This email is intended solely for the use of the addressee and may
contain information that is confidential, proprietary, or both.
If you receive this email in error please immediately notify the
sender and delete the email.

Reply via email to