[Spacewalk-list] Trouble installing spacewalk on x86_64 centos 5

Jesus M. Rodriguez jmrodri at gmail.com
Fri Jul 18 03:35:03 UTC 2008


On Thu, Jul 17, 2008 at 9:50 PM, Drew <drew at sundawg.org> wrote:
>
> After successfully installing and configuring Oracle XE server and client, I
> execute "spacewalk-setup --disconnected" and receive the following:
>
> [root at owl ~]# spacewalk-setup --disconnected
> * Loading answer file: /usr/share/spacewalk/setup/defaults.conf.
> * Setting up environment and users.
> ** GPG: Initializing GPG and importing RHN key.
> * Setting up database.
> ** Database: Setting up database connection.
> DB User? spacewalk
> DB Password?
> DB SID? xe
> DB hostname? localhost
> DB port [1521]?
> DB protocol [TCP]?
> Could not connect to the database.  Your connection information may be
> incorrect.  Error: install_driver(Oracle) failed: Can't load
> '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so'
> for module DBD::Oracle: libclntsh.so.10.1: wrong ELF class: ELFCLASS32 at
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230,
> <STDIN> line 6.
>  at (eval 784) line 3
> Compilation failed in require at (eval 784) line 3, <STDIN> line 6.
> Perhaps a required shared library or dll isn't installed where expected
>  at /usr/bin/spacewalk-setup line 1504
>
> Appears some sort of mismatch between a 64-bit DBD::Oracle module and a
> 32-bit libclntlsh.so.10.1.
>
> So I removed the oracle-instantclient*i386.rpm and installed
> oracle-instantclient*x86_64.rpm. That gives the following error:
>
> [root at owl ~]# spacewalk-setup --disconnected
> * Loading answer file: /usr/share/spacewalk/setup/defaults.conf.
> * Setting up environment and users.
> ** GPG: Initializing GPG and importing RHN key.
> * Setting up database.
> ** Database: Setting up database connection.
> DB User? spacewalk
> DB Password?
> DB SID? xe
> DB hostname? localhost
> DB port [1521]?
> DB protocol [TCP]?
> Could not connect to the database.  Your connection information may be
> incorrect.  Error: install_driver(Oracle) failed: Can't load
> '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/Oracle/Oracle.so'
> for module DBD::Oracle: /usr/lib/oracle/10.2.0.4/client64/lib/libnnz10.so:
> cannot restore segment prot after reloc: Permission denied at
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230,
> <STDIN> line 6.
>  at (eval 784) line 3
> Compilation failed in require at (eval 784) line 3, <STDIN> line 6.
> Perhaps a required shared library or dll isn't installed where expected
>  at /usr/bin/spacewalk-setup line 1504
>
> Different error, but still related to DBD::Oracle. Any suggestions?
>
> Thanks
>

Hi Drew,

Did you run ldconfig before running spacewalk-setup?

    NOTE: x86_64 users will need to run the following command:

      ldconfig /usr/lib/oracle/10.2.0.4/client64/lib/

jesus




More information about the Spacewalk-list mailing list