libpng.so.2

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
Ok a problem a user has come across installing MRTG, the libpng.so.2 file is missing. I know it is part of the libpng package, and believe that is installed by DA.

I have had the user check and the libpng RPM is there, so im assuming the install is corrupted in some way or another, I have since looked for the RPM for RH9 and appear to be unable to find this same RPM for RH9.

Are there any DA FTP / directory locations where we can download / view a list of installed RPMs?

I think if DA does not already have one, an FTP server would be great, its something most other major control panels have, and would be a great help in situations like this :)

Chris
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,958
Hello,

The only RPM's that DA installs (for redhat 9.0) would be found in:

http://files.directadmin.com/services/9.0

And when DA gets installed, it compiles libpng.so.3 into /usr/local/lib/libpng.so.3

You *could* try making a symlink:
Code:
ln -s /usr/local/lib/libpng.so.3 /usr/lib/libpng.so.2
Not sure it will work, but it's sure worth a shot.

John
 

l0rdphi1

Verified User
Joined
Jun 22, 2003
Messages
1,471
Code:
wget ...
rpm -Uvh lib*
then it works :)


*edited because it turned out not to work in the long run*
 
Last edited:

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
i found that one earlier, the reason i ignored it is the version is totally different to the others.... there were only 1/2 for rh9 and they had totally different descriptions to everything else.

I Will add the info to the mrtg page now :) thanks for confirming that.

Chris
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
Ok, again this is cpanel fix, although similar:

# cd /usr/lib
# ln -s libpng.so.3 libpng.so.2

the DA suggested fix was basically the same, although libpng.so.3 was located in /usr/lib/local/ not /usr/lib/

After checking my rh9 box again, the libpng.so.3 WAS in /usr/lib

you may want to run locate libpng.so.3 to double check its location first :)

Chris
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,958
Hello,

It is in /usr/local/lib/libpng.so.3 on my system here.. I think it's a different version. We install 1.2.5, and I'm seeing 1.2.2 in /usr/lib ... anyway, glad it's sorted.

John
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
Don't think its sorted.... trying to find a working solution :(

Is the system you are checking RH9?

Chris
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,958
On my RH 7.2 I have the following libpng files (this may be non-standard):

libpng-1.0.12-2

/usr/lib/libpng.so.2.1.0.12
/usr/lib/libpng.so.2
/usr/lib/libpng.a
/usr/lib/libpng.so
/usr/local/lib/libpng12.a
/usr/local/lib/libpng.a
/usr/local/lib/libpng12.so.0.1.2.5
/usr/local/lib/libpng.so.3.1.2.5
/usr/local/lib/libpng.so.3
/usr/local/lib/libpng.so
/usr/local/lib/libpng12.so.0
/usr/local/lib/libpng12.so

On our RH 8.0 file server we have:

libpng-1.2.2-8 rpm

/usr/lib/libpng.so.3.1.2.2
/usr/lib/libpng.so.3
/usr/lib/libpng12.so.0.1.2.2
/usr/lib/libpng12.so.0
/usr/lib/libpng.so.2.1.0.13
/usr/lib/libpng.so.2
/usr/lib/libpng10.a
/usr/lib/libpng.a
/usr/lib/libpng.so
/usr/lib/libpng12.a
/usr/lib/libpng12.so
/usr/lib/libpng10.so
/usr/local/lib/libpng12.a
/usr/local/lib/libpng.a
/usr/local/lib/libpng12.so.0.1.2.5
/usr/local/lib/libpng.so.3.1.2.5
/usr/local/lib/libpng.so.3
/usr/local/lib/libpng.so
/usr/local/lib/libpng12.so.0
/usr/local/lib/libpng12.so

John
 

teedee

Verified User
Joined
Oct 30, 2003
Messages
152
on my RH9 I have

/usr/lib/libpng.a
/usr/lib/libpng.so
/usr/lib/libpng.so.3
/usr/lib/libpng.so.3.1.2.5
/usr/lib/libpng.12.a
/usr/lib/libpng.12.so
/usr/lib/libpng.12.so.0
/usr/lib/libpng.12.so.0.1.2.5

MRTG not installing
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
Based on John's previous fix, and a fix found for MRTG with CPanel, it appears you need to do the following:

# cd /usr/lib
# ln -s libpng.so.3 libpng.so.2

Keep us informed with how it goes :)

Chris
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
Can you be more specific on what errors you are recieveing?

Thanks,
Chris
 

l0rdphi1

Verified User
Joined
Jun 22, 2003
Messages
1,471
When I tried the symlinks (both variations of John's and the ones from EV1) the error remained the same - "libpng.so.2 is needed by mrtg-2.9.17-4ct"
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
hmmm, i think the best option for it is me to get on with a RPM and not compile libpng into mrtg :)

Chris
 

l0rdphi1

Verified User
Joined
Jun 22, 2003
Messages
1,471
Well, okay. Installing the old way is not much more difficult than this, and most people don't mind.

Good luck.
 

ProWebUK

Verified User
Joined
Jun 9, 2003
Messages
2,326
Location
UK
If i made the rpm, it would be based on the original howto although the new CFG's included and an install via 1 simple command :)

Chris
 
Top