Re: Issue with DBD::Oracle on OS X Snow Leopard

[email protected] (Jonas Brømsø Nielsen)
Newsgroups perl.copenhagen
Message-ID <[email protected]>
Hi Claes,

Thanks for the swift response.

I get another error now - but I can see on the Oracle page I referred to that 64-bit versions are available, perhaps they are worth the shot.

jonasbn

On 17/11/2009, at 16.11, Claes Jakobsson wrote:

> Ohio,
> 
> On 17 nov 2009, at 16.02, Jonas Brømsø Nielsen wrote:
>> Hep,
>> 
>> 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: 
>> 
>> 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.
> 
> The issue I belive is that it tries to also build and link a 64-bit version which will fail because oracle only provide 32-bit libs.
> 
> If you can live with running 32-bit perl then I suggest you try by always setting the environment variable VERSIONER_PERL_PREFER_32_BIT=1
> 
> /Claes
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.