The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MRTG libpng error

Discussion in 'General Discussion' started by sh4ka, Oct 14, 2005.

  1. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Days ago I installed MRTG and all was working fine, until now...
    Does anybody know where/how to get/install libpn-1.22 ?


    Code:
    root@server [~]# service mrtg stop
    Shutting down MRTG:                                        [  OK  ]
    root@server [~]# service mrtg start
    Starting MRTG: Daemonizing MRTG ...
    
    root@server [~]# 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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'index'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'tcp'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'load'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'swap'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'processes'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'uptime'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'cpu'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'localhost.mem'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'mail-host-email-totals'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'mail-host-email-queue'
     Signal was 11, Returncode was 0
    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
    WARNING: rateup died from Signal 11
     with Exit Value 0 when doing router 'mail-host-email-count'
     Signal was 11, Returncode was 0
    
    
     
  2. AlexSmithMCP

    AlexSmithMCP Well-Known Member

    Joined:
    May 26, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    If i remember correctly this should work from the MTRG RH9 install guide on the forums [Post Here] [Thread Here]

    Code:
    cd /usr/lib
    mv libpng.so.2 libpng.so.2.OLD ... OR rm libpng.so.2 (your choice)
    ln -s libpng.so.3 libpng.so.2
    I'd like to point out that I *Have Not* tested this lately so YMMV but it did work on RH9, FC1 & FC2.

    I'd recommend Cacti over MTRG anyways ;)

    One other thing to watch out for, IIRC Cpanel's updates will nuke that ln -s you do above so you'll need to redo it after each /scripts/upcp else your graphs will break.

    Hope that helps a little
     
  3. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Maybe if I apply "chattr +i" to those libs they won't be overriten by cpanel updtes.. ?
     
  4. nurseryboy

    nurseryboy Well-Known Member

    Joined:
    Mar 3, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Hello Sh4ka,

    Did the chattr work for you?
     
  5. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    In theory it should work... but I just don't remember how did I fix this problem.. this was many months ago.. sorry :rolleyes:
     
  6. savitha

    savitha Member

    Joined:
    Jan 4, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cochin
    I have fixed this error

    I have done the following steps and that fixed the error on restarting mrtg.

    root@savitha [/usr/lib]# mv libpng.so.2 libpng.so.2.OLD
    root@savitha[/usr/lib]# ln -s libpng.so.3 libpng.so.2
    root@savitha[/usr/lib]# service mrtg restart
    Shutting down MRTG: [ OK ]
    Starting MRTG: Daemonizing MRTG ... [ OK ]
     
    #6 savitha, Jul 14, 2007
    Last edited: Jul 14, 2007

Share This Page