Chris Howard wrote:

On Wed, 2007-02-21 at 07:57 -0700, Chris Howard wrote:
Having problems with the install of DBD::Oracle 1.19 on
a Fedora Core 5 machine.

DBI 1.53 installed and the tests ran ok

I'm using the Oracle XE from the Oracle download oracle-xe-10.2.0.1-1.0.i386.rpm

The error message from 'make test':


PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01base................Failed to load Oracle extension and/or shared
libraries:
install_driver(Oracle) failed: Can't load
'/usr/local/src/DBD-Oracle-1.19/blib/arch/auto/DBD/Oracle/Oracle.so' for
module
DBD::Oracle: 
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libnnz10.so: cannot 
restore segment prot after reloc: Permission denied at 
/usr/local/lib/perl5/5.8.8/i686-linux/DynaLoader.pm line 230.
 at (eval 3) line 3
Compilation failed in require at (eval 3) 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.

I tried setting LD_LIBRARY_PATH and LD_RUN_PATH.  That didn't change
anything.  Here, see:

[EMAIL PROTECTED] DBD-Oracle-1.19]# env | grep LD
OLDPWD=/usr/local/src
LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib
LD_RUN_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib

I tried building my own Perl 5.8.8, reinstalling DBI on that perl
and then trying DBD::Oracle with that perl, but it didn't help,
same error.

I'm doing all of this as root.


Are you running SELinux?
i.e. in your /etc/sysconfig/selinux file does it say "SELINUX=enabled".
If so, try changing it to disabled, rebooting and run make test again.
If that fixes it and you still want to use SELinux you'll have to read up about "chcon" command which I'm not really familiar with, I just saw the same error with something else when SELinux was enabled.

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

Reply via email to