Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* cron job PATH problem?
@ 2003-08-11  2:28 Zhiliang Hu
  2003-08-11  2:37 ` Nico Kadel-Garcia
  0 siblings, 1 reply; 2+ messages in thread
From: Zhiliang Hu @ 2003-08-11  2:28 UTC (permalink / raw)




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?

Thanks in advance!

Zhiliang


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cron job PATH problem?
  2003-08-11  2:28 cron job PATH problem? Zhiliang Hu
@ 2003-08-11  2:37 ` Nico Kadel-Garcia
  0 siblings, 0 replies; 2+ messages in thread
From: Nico Kadel-Garcia @ 2003-08-11  2:37 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-11  2:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-11  2:28 cron job PATH problem? Zhiliang Hu
2003-08-11  2:37 ` Nico Kadel-Garcia

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