help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setting LIBRARY PATH


From: Alan Silver
Subject: setting LIBRARY PATH
Date: Thu, 17 Jan 2002 12:22:15 -0500

Hi all:

I am having a slight problem with library paths and such .

I am using cfengine 2.0.a15 on a solaris 8 and solaris 2.6 boxes. 

I have compiled and installed just fine and everything is working ok.
The problem I am having is with the LD_LIBRARY_PATH. If I set it and 
run cfagent or cfexecd from the command line, all is fine. If I try to
run it out of cron, I get an error.

It goes something like this:
cfexecd -F 
ld.so.1: /usr/local/sbin/cfexecd: fatal: libdb-3.2.so: open failed: No
such file or directory
Killed

If I try to set the LD_LIBRARY_PATH on the command line like, 
cfexecd -F -L /usr/lib:/usr/local/lib:/usr/local/BerkeleyDB/lib

I get the same error message as above. 
If I do a truss on the command

dumbo{root}:truss cfexecd -F -L
/usr/lib:/usr/local/lib:/usr/local/BerkeleyDB/lib    
execve("/usr/local/sbin/cfexecd", 0xFFBEFD9C, 0xFFBEFDB0)  argc = 4
stat("/usr/local/sbin/cfexecd", 0xFFBEFAD8)     = 0
open("/var/ld/ld.config", O_RDONLY)             Err#2 ENOENT
open("/usr/lib/libdb-3.2.so", O_RDONLY)         Err#2 ENOENT
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000
ld.so.1: cfexecd: fatal: libdb-3.2.so: open failed: No such file or
directory
write(2, " l d . s o . 1 :   c f e".., 78)      = 78
getpid()                                        = 4343 [4342]
        *** process killed ***

So, it looks like it isn't looking through the other directories namely
/usr/local/BerkeleyDB/lib 
which does indeed contain libdb-3.2.so as can be seen below:

dumbo{root}:ls -la /usr/local/BerkeleyDB/lib    
total 5334
drwxr-xr-x   2 bin      bin          512 Oct 10 16:52 ./
drwxr-xr-x   6 bin      bin          512 Oct 10 16:52 ../
-rw-r--r--   1 bin      bin          685 Jul 16  2001 libdb-3.2.la
-rwxr-xr-x   1 bin      bin       628715 Jul 16  2001 libdb-3.2.so*
-rwxr-xr-x   1 bin      bin       628715 Jul 16  2001 libdb-3.so*
-r--r--r--   1 bin      bin       796096 Jul 16  2001 libdb.a
-rwxr-xr-x   1 bin      bin       628715 Jul 16  2001 libdb.so*


Does anyone see this problem or know what I am doing wrong ???

Thanks for the help

alan
-- 
Alan Silver
UNIX Systems Administrator
Harvard Business School

617-495-5801
address@hidden

"The two prime movers of the Universe are Time and Luck"  
   -- Kurt Vonnegut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]