Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Nico Kadel-Garcia <nkadel@verizon.net>
Subject: Re: cron job PATH problem?
Date: Mon, 11 Aug 2003 02:37:23 GMT	[thread overview]
Message-ID: <DjDZa.11345$pn3.6881@nwrdny01.gnilink.net> (raw)
In-Reply-To: <Xns93D3DA6571CD3zhuiastateedu@129.186.1.4>

Zhiliang Hu wrote:
> On a True64 system (UNIX4.0), I have a perl program to query Ingress 
> database through DBI/DBD and it works fine on command line.  However when I 
> use cron job to run the program it complains:
> 
> install_driver(Ingres) failed: Can't load
> '/usr/local/lib/perl5/site_perl/5.8.0/alpha-
> dec_osf/auto/DBD/Ingres/Ingres.so' for
> module DBD::Ingres: dlopen: cannot load
> /usr/local/lib/perl5/site_perl/5.8.0/alpha-
> dec_osf/auto/DBD/Ingres/Ingres.so at
> /usr/local/lib/perl5/5.8.0/alpha-dec_osf/DynaLoader.pm line 229.
>  at (eval 1) line 3
> Compilation failed in require at (eval 1) line 3.
> Perhaps a required shared library or dll isn't installed where expected
>  at /WWW/apache/share/cgi-bin/cgi-perl/array_list.pl line 27
> 
> 
> I tried to fix it by adding more to the PATH in this program but didn't 
> help at all.  Wonder what could be the problem?

First, I think you would want to set LD_LIBRARY_PATH, not PATH. Is this 
cron job running as root or as a user? In some OS's, root is not 
*allowed* to set a LD_LIBRARY_PATH, it gets ignored for security raasons.

Can you preload the library path at compilation time for your Perl 
modules, instead of expecting it to be found by the cron job? 
Alternatively, can you symbolically link the appropriate libraries into 
/usr/lib/. so they get found at run time by default?

Lastly, why in ghu's name are you still running the 4.0 release? There 
are a whole stack of patches and updates between 4.0 and 5.1b that yo 
umay find useful.



      reply	other threads:[~2003-08-11  2:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11  2:28 cron job PATH problem? Zhiliang Hu
2003-08-11  2:37 ` Nico Kadel-Garcia [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox