Click to See Complete Forum and Search --> : Anyone know where I can find some libs?
khaije1
04-04-2003, 06:26 PM
Good afternoon.
I am trying to install the krillo demo (krilodemo-1.3-2.i586.rpm) on my mdk9.0 box using Kpackage. It keeps saying that it is missing a library libpng.so.2
This seems strange to me since I have never had any difficulty viewing and creating png files, but hey maybe I need to upgrade the little guy.
This brings two things to mind...
1.) thank god I dont have to go through the trouble of registering the new lib in a registery...
2.) Where the heck am I gonna get this file?!?!
I say this info definitely falls into the 'useful' category.
*Q*:Are there any web warehouses or ftps that anyone can recommend for finding differnt libraries?
All input is greatly appreciated... from the exotic to the mundane these little guys are the only thing keeping me from cracking open the fun on this desktop.
THANKS!!!
************
'To our enemies - if God cannot turn their hearts, may he turn their ankles, that we may know them be their limping.'
TheSpeedoBeast
04-05-2003, 01:25 AM
A good place to start for libraries, etc. is http://rpmfind.net/ ...assuming that you ARE using a rpm-based distro...
LrngTheHardWay
04-05-2003, 04:58 AM
It's possible that linking libpng.so.2 to libpng.so.3 will work.
Console as root:
ln -s /usr/lib/libpng.so.3 /usr/lib/libpng.so.2
You should then be able to complete the package installation without it choking on you.
irlandes
04-05-2003, 10:45 PM
I agree with rpmfind.net as a source.
Another tip on dependencies:
Install Drake CD#1 in the CDROM drive. Go to the RPMS directory with a terminal or any command prompt.
Type:
rpm -qpl * > /CD1 <enter>
It will extract file names from all the rpm's on the CD and build a nice file of them.
If you want to see if a dependency file is on CD#1, open /CD1 with, oh say, Kate then do a FIND for the file.
Ditto for CD#2 and CD#3. Be sure to change the file name accordingly, of course.
In this case, I already had the CD files for 9.0 and could not find your file so it is not part of the distro. rpmfind.net it is.
**************
Another great source of information on any problem is www.google.com Type the file name plus the word linux and you almost always get lots of sources of information.
Ditto for an error. Believe it or not, most error messages, full length and verbatim typed into the google search box will get a lot of responses, usually enough to solve your problem.
All this even before searching forums on justlinux.com. Of course, if everyone does that justlinux.com probably goes out of business. :-)
khaije1
04-09-2003, 01:35 PM
I hope this image attaches correctly. Incase it doesnt I'll add some detail at the bottom...
this is msg I got when I tried the linking solution. I know a litle about C++ so this makes sense to me. 2 solutions come to mind let me know what you think.
1. edit the old png.h file to work with the new png.c file (very very bold of me, but maybe intresting)
2. try to find the old png.c that corresponds to the old header and change the link in libs to that one. (Probably safer)
Any one have anyother ideas? Things I should try.
Thanks!!
Sorry its ugly I tried to attach it as a png file but it wouldnt display int he preview.
(screen output)
[nick@mhslinuz0204 bin]$ stat /usr/lib/libpng.so*
File: `/usr/lib/libpng.so.2' -> `libpng.so.3.1.2.4'
Size: 17 Blocks: 0 IO Block: 4096 Symbolic Link
Device: 307h/775d Inode: 166265 Links: 2
Access: (0755/lrwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-04-09 13:22:53.000000000 -0400
Modify: 2002-12-17 14:15:14.000000000 -0500
Change: 2003-04-08 17:42:29.000000000 -0400
File: `/usr/lib/libpng.so.3' -> `libpng.so.3.1.2.4'
Size: 17 Blocks: 0 IO Block: 4096 Symbolic Link
Device: 307h/775d Inode: 166265 Links: 2
Access: (0755/lrwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-04-09 13:31:00.000000000 -0400
Modify: 2002-12-17 14:15:14.000000000 -0500
Change: 2003-04-08 17:42:29.000000000 -0400
File: `/usr/lib/libpng.so.3.1.2.4'
Size: 2912 Blocks: 8 IO Block: 4096 Regular File
Device: 307h/775d Inode: 166266 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-04-09 13:22:53.000000000 -0400
Modify: 2002-07-20 05:25:51.000000000 -0400
Change: 2002-12-17 14:15:14.000000000 -0500
[nick@mhslinuz0204 bin]$ krilo_demo
libpng warning: Application was compiled with png.h from libpng-1.0.5
libpng warning: Application is running with png.c from libpng-1.2.4
libpng error: Incompatible libpng version in application and library
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
[nick@mhslinuz0204 bin]$