[Top][All Lists]

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


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 /usr/local/sbin/cfexecd: fatal: open failed: No
such file or directory

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
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/", O_RDONLY)         Err#2 ENOENT
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000 cfexecd: fatal: open failed: No such file or
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
which does indeed contain 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
-rwxr-xr-x   1 bin      bin       628715 Jul 16  2001*
-rwxr-xr-x   1 bin      bin       628715 Jul 16  2001*
-r--r--r--   1 bin      bin       796096 Jul 16  2001 libdb.a
-rwxr-xr-x   1 bin      bin       628715 Jul 16  2001*

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

Thanks for the help

Alan Silver
UNIX Systems Administrator
Harvard Business School


"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]