I have got DBD::Oracle working on SL.  Here's my perl -V ...

bash-3.2# perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level
    uname='darwin neige.apple.com 10.0 darwin kernel version 10.0.0d8: tue
may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags=
-Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none
-Dcc=gcc-4.2'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc-4.2', ccflags ='-arch x86_64 -arch i386 -arch ppc -g -pipe
-fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',
    optimize='-Os',
    cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing
-I/usr/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)',
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, prototype=define
  Linker and Libraries:
    ld='gcc-4.2 -mmacosx-version-min=10.6', ldflags ='-arch x86_64 -arch
i386 -arch ppc -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-arch x86_64 -arch i386 -arch ppc -bundle
-undefined dynamic_lookup -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_64_BIT_ALL
                        USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API
  Locally applied patches:
        /Library/Perl/Updates/<version> comes before system perl directories
        installprivlib and installarchlib points to the Updates directory
  Built under darwin
  Compiled at Jun 24 2009 00:35:27
  %ENV:
    PERL_UNICODE="S"
  @INC:
    /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
    /Library/Perl/Updates/5.10.0
    /System/Library/Perl/5.10.0/darwin-thread-multi-2level
    /System/Library/Perl/5.10.0
    /Library/Perl/5.10.0/darwin-thread-multi-2level
    /Library/Perl/5.10.0
    /Network/Library/Perl/5.10.0/darwin-thread-multi-2level
    /Network/Library/Perl/5.10.0
    /Network/Library/Perl
    /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
    /System/Library/Perl/Extras/5.10.0
    .

>From memory, all I did was edit the generated Makefile and changed the
NMEDIT line ...

bash-3.2# grep NM Makefile
NMEDIT = echo
        $(NMEDIT) -R ./hints/macos_bundle.syms $(INST_DYNAMIC) || true

I am using the 64 bit instant client rather than the 32 bit one.

Hope this helps.

Steve

On Wed, Nov 18, 2009 at 4:15 AM, John Scoles <[email protected]> wrote:

> The warning from the build would be nice to stt.
>
> At this stage I would say that you might be cross compile from 32 to 64 bit
>  but I have never played with the mac version and installing so that is just
> a guess
>
> cheers
>
>
> Jonas Brřmsř Nielsen wrote:
>
>> Hello,
>>
>> I am experiencing some issues with DBD::Oracle on OS X 10.6 Snow Leopard.
>>
>> I have downloaded instant client Version 10.2.0.4 (32-bit) from:
>>
>> http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html
>>
>> Namely, the following files:
>>
>> - instantclient-basic-10.2.0.4.0-macosx-x86.zip
>> - instantclient-sqlplus-10.2.0.4.0-macosx-x86.zip
>> - instantclient-sdk-10.2.0.4.0-macosx-x86.zip
>>
>> I am attempting to build: DBD::Oracle 1.23, downloaded from CPAN.
>>
>> I am currently using the system perl:
>> --
>> This is perl, v5.10.0 built for darwin-thread-multi-2level
>> (with 2 registered patches, see perl -V for more detail)
>> --
>>
>> I have unpacked the downloaded zip files in: /Applications/instantclient
>> and have added this to my: $DYLD_LIBRARY_PATH
>>
>> The build goes with some warnings (I can provide this info if requested),
>> performing the test sted gives me the following error:
>>
>> sonic ~/Downloads/Folx/DBD-Oracle-1.23
>> ; make test
>> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
>> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>> t/01base.t .............. # Test loading DBI, DBD::Oracle and version
>> t/01base.t .............. 1/6 #   Failed test 'install_driver'
>> #   at t/01base.t line 22.
>> Failed to load Oracle extension and/or shared libraries:
>> install_driver(Oracle) failed: Can't load
>> '/Users/jonasbn/Downloads/Folx/DBD-Oracle-1.23/blib/arch/auto/DBD/Oracle/Oracle.bundle'
>> for module DBD::Oracle:
>> dlopen(/Users/jonasbn/Downloads/Folx/DBD-Oracle-1.23/blib/arch/auto/DBD/Oracle/Oracle.bundle,
>> 2): Symbol not found: _OCIAttrGet
>>  Referenced from:
>> /Users/jonasbn/Downloads/Folx/DBD-Oracle-1.23/blib/arch/auto/DBD/Oracle/Oracle.bundle
>>  Expected in: flat namespace
>>  in
>> /Users/jonasbn/Downloads/Folx/DBD-Oracle-1.23/blib/arch/auto/DBD/Oracle/Oracle.bundle
>> at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line
>> 207.
>>  at (eval 8) line 3
>> Compilation failed in require at (eval 8) line 3.
>> Perhaps a required shared library or dll isn't installed where expected
>>  at t/01base.t line 19
>> The remaining tests will probably also fail with the same error.
>>
>> Any sort of pointers or hints on how to get this to work would be most
>> welcome. I got it working on 10.5 so upgrading to Snow Leopard hosed my
>> working installation.
>>
>> Thanks,
>>
>> jonasbn
>> --
>> pauseid: JONASBN
>> email: [email protected]
>>
>>
>>
>>
>>
>

Reply via email to