Re: install_driver(Oracle) failed: wrong ELF class: DynaLoader.pm



On Wed, May 28, 2008 at 8:30 AM, Christian Merz <christian.merz@xxxxxxxxxxx>
wrote:

i wrote a skript which works fine for several Oracle Versions on several
platforms (linux, solarias 8/9).

if i run that script ineractively on solaris 10 it also works fine.

if i run it as a cron job i get:


cron does not set the environment, so you must do so for it.



install_driver(Oracle) failed: Can't load
'/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/DBD/Oracle/Oracle.so'
for module DBD::Oracle: ld.so.1: perl: fatal:
/oracle/product/10.2.0/lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64 at
/usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
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



32-bit Client library - 64-bit Perl - won't work.

Install 32-bit Perl or 64-bit client libraries.


Or just set the environment.



--
Jonathan Leffler <jonathan.leffler@xxxxxxxxx> #include <disclaimer.h>
Guardian of DBD::Informix - v2008.0229 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."


Relevant Pages

  • Re: Connect DB2 environment setting problem
    ... I execute the program by command line is OK, ... Connection failed with error: Total Environment allocation failure! ... Did you set up your DB2 client environment? ... the necessary variables in the cron job. ...
    (comp.lang.perl.misc)
  • Re: Updating FreeBSD
    ... Portaudit installs a cron job that checks ... >the results to the security run output system mail. ... Technicall portaudit does not install a cron job but just ...
    (comp.unix.bsd.freebsd.misc)
  • Re: / space usage [SOLVED!]
    ... On Tue, 2004-09-21 at 08:55, Paul Howarth wrote: ... The only cron job I run on this ... particular install I installed KDE as well as GNOME and it looks like ... Mark Haney ...
    (Fedora)
  • Re: How to debug cron jobs?
    ... the environment under which the cron job will run. ... Run the same command with the environment set the way cron does, ...
    (comp.unix.shell)
  • Re: Stats - Alt Html
    ... On 07 Jul 2008, Travis Newbury wrote: ... Great sights and sounds ...
    (alt.html)