Re: Issue with DBD::Oracle on OS X Snow Leopard
[email protected] (Claes Jakobsson)
| Newsgroups | perl.copenhagen |
|---|---|
| Message-ID | <[email protected]> |
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