[mrtg] Re: LD_LIBRARY_PATH & cron errors..(SOLVED)
Demian Hanks
demian at csbs.utah.edu
Tue Jan 25 22:16:04 MET 2000
After a response from Sethilvel Rangaswamy, and a closer look at
the makefile, I came up with the following options/solutions:
1) RTFM, paying close attention to the README
The readme suggests using:
./configure --with-gd=../gd-1.7.3 --with-z=../zlib --with-png=../libpng
which I didn't realize would create a dependency on a relative path.
Absolute paths here would and did solve the problem, i.e:
./configure --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include
--with-z-lib=/usr/local/lib --with-z-inc=/usr/loc
al/include --with-png-lib=/usr/local/lib --with-png-inc=/usr/local/include
Part of the way I figured this out was:
[jafo:/export/src/new/mrtg-2.8.9/run] {2085} /usr/bin/ldd rateup
libm.so.1 => /usr/lib/libm.so.1
libpng.so.2 => (file not found)
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
and Sethil's suggestion listed below.
2) Another option was to sym-link libpng.so.2 to /usr/lib
Probably not the best option, but it works.
3)
BEGIN QUOTE "
From: Senthilvel Rangaswamy <senthilr at Eng.Sun.COM
Re: [mrtg] LD_LIBRARY_PATH & cron errors..
Date: Tue, 25 Jan 2000 11:37:33 -0800
Add this to your Makefile.
LD_RUN_PATH = <path to your png libraries>
before compiling.
It worked for me.
--
..Senthil
"Laziness, Impatience and Hubris. Three great virtues of a programmer.."
- Larry Wall.
END QUOTE "
Anyway, thanks to Senthil for his quick response, and clarity.
I thought I'd post this back to the list so that there would be a hopefully
clear
explanation of what was wrong, and how to fix it.
I look forward to figuring out the rest of this...
Thanks,
Demian Hanks
CSBS Network Admin
Demian Hanks wrote:
> I have just set up mrtg 2.8.9, the compile of all the dependencies
> seemed
> to go fine as well as mrtg itself, but I am recieving email errors from
> cron:
>
> PROBLEM: rateup died from Signal 9
> with Exit Value 0 when doing router 'xxx.xxx.xxx.3.1'
> code was 9, retcode was . If this happens all the time,
> you should probably investigate the cause. :-)
>
> ld.so.1: /export/src/new/mrtg-2.8.9/run//rateup: fatal: libpng.so.2:
> open
> failed: No such file or directory
>
> There are a few messages in the archive that touch on this problem, but
> I haven't been able to find one that resolves it.
> There is one message from tkennedy at newsreal.com had explains that this
> is an LD_LIBRARY_PATH problem
> (http://www.ee.ethz.ch/~slist/mrtg/msg00381.html),
> but I can't seem to get my cron to set this environment correctly.
>
> I came to the same conclusion. If I run mrtg by hand in a shell that has
>
> LD_LIB.. defined,
> everything is fine, but run from cron it complains.
>
> I know I can write a script to handle this, but it seems like the wrong
> way go(?).
> I would rather recompile, if I can find a way to resolve it.
>
> Any suggestions?
> Thanks in advance,
>
> Demian Hanks
> CSBS Network Admin
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Help mailto:mrtg-request at list.ee.ethz.ch?subject=help
> Archive http://www.ee.ethz.ch/~slist/mrtg
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list