HOWTO: Very easy RPM based MRTG installation

Here's what I'm getting:

libpng warning: Application was compiled with png.h from libpng-1.2.2
libpng warning: Application is running with png.c from libpng-1.0.13
gd-png: fatal libpng error: Incompatible libpng version in application and library

..and it won't let me remove libpng due to dependencies on bunches of other applications.
 
Note that the soloution is for cpanel, i suggest you ensure you have / can replace your current rpm's before removing :)

Chris
 
... just read this also!

Remove every single libpng and then when you reinstall, make sure you DO NOT install the ones with "10" next to them.

you had to install the one with 10 that i thought stood out! lol
 
I'm back to
libpng.so.2 is needed by mrtg-2.9.17-4ct
again.

When installing gnome-libs it gave me:
Failed dependencies:
ORBit is needed by gnome-libs-1.4.1.2.90-32
imlib is needed by gnome-libs-1.4.1.2.90-32
libIIOP.so.0 is needed by gnome-libs-1.4.1.2.90-32
libORBit.so.0 is needed by gnome-libs-1.4.1.2.90-32
libORBitCosNaming.so.0 is needed by gnome-libs-1.4.1.2.90-32
libORBitutil.so.0 is needed by gnome-libs-1.4.1.2.90-32
libgdk_imlib.so.1 is needed by gnome-libs-1.4.1.2.90-32
libpng.so.2 is needed by gnome-libs-1.4.1.2.90-32
so I skiped it.


So.. know where I can get a libpng.so.2 that works with RH9?
 
I guess so, libpng.so.2 is on the provides list, so if it installs it gives your server what it needs..... now we need to hope :)

Chris
 
Well.. this is not going to work.

How do I get it to stop trying to run every 5 minutes?
 
Last edited:
I believe the RH 7.3 installation is going smooth, have not yet seen any major problems :)

I suggest if you have a MRTG installed from source you just remove all configs and stop MRTG from running, I believe the RPM installs to a different directory to that of the compiled version I made a guide for.

Any problems feel free to post here :)

Chris
 
l0rdphi1 said:
Well.. this is not going to work.

How do I get it to stop trying to run every 5 minutes?

to uninstall it completely run the normal rpm -e on there

# rpm -e mrtg

can i ask what the error was with the previous libpng?

Chris
 
LordPhi: I checked my RH9 box (which has mrtg running) and its running the following version:

libpng-1.2.2-16

Which can be found here:
http://rpmfind.net/linux/RPM/redhat/9/i386/libpng-1.2.2-16.i386.html

Now, the weird thing is i also have no libpng.so.2 and that RPM does *not* provide it, im thinking MRTG may have been compiled with the libpng built in..... if it has been i will consider making a DA specific RPM which could also save pretty much any work involved to get this working properly :)

Chris
 
My .cfg file and the data generator are loacted here.

They are working fine as of this afternoon, since I've fixed them.

However, note that the .cfg file is designed to run in /var/www/html/mrtg; you'll have to modify the the .cfg if you want to run it elsewhere.
 
Back
Top