LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2004, 10:08 AM   #1
tyleradam
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
Installing Software Problem. Easy for you, impossible for me (libpng)


Hello all. Linux newb here. Kinda. I know the basics. How to move around the filesystem, untar stuff, etc. Just the basics that you learn from running a webserver for a couple of years. But I have the hardest times when it comes to installing new software.

I'm using Rackspace and running Red Hat Enterprise Linux ES release 2.1 (Panama).

I'm trying to get this utility gif2png to work for a PHP image uploading script. I have GD 2.0.15 with PNG support installed. Dont know if that matters.

Anyways. I try installing the gif2png RPM with "rpm -ivh gif2png.rpm". And it comes back with this error..
Code:
libpng12.so.0   is needed by gif2png-2.5.1-1
So. I wanted to see if I had libpng installed. So I ran this command..
Code:
rpm -q -a | grep libpng
Now, I dont know if this is the right command or not. I just found it on a website. I'm guessing it tells me what version of libpng I have installed? Anyways.. it returns..
Code:
libpng-devel-1.0.14-7
libpng-1.0.14-7
So this means I have libpng installed? But the latest verison out right now is libpng-1.2.7. SO, Im thinking maybe the gif2png.rpm needs the latest version for it to work?

So I downloaded the latest libpng rpm and ran it. It scrolled all the lines of text, etc. No errors. And I run the command that I think is to check to see what version of libpng I have installed..
Code:
rpm -q -a | grep libpng
And it prints out the old version again.

So. (1) If that command is the proper way to check what version of the software I have installed. Why is this new libpng not being installed? And (2) If it doesnt matter what version of libpng I have, how come I cant get the gif2png rpm to notice that I have libpng installed.

Also, I have an older version of zlib. I tried the source and rpm install of the latest.. but using that command to check the versions... it says I still have the old one.

So if anyone could give me pointers on how to diagnosis problems like this.. it would be greatly appreciated. It's more than just this libpng problem.. I feel like Ill run into probs like this again in the future if I dont understand the workings of how installs work on linux better.

P.S. 1 - I tried up2date. It doesnt work.
P.S. 2 - Does anyone know if gif2png is the best way to get user uploaded gifs on your server. And does GD not have a solution, why do I have to install this extra gif2png utility?

Last edited by tyleradam; 10-14-2004 at 10:09 AM.
 
Old 10-14-2004, 10:15 AM   #2
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
I'm not a fan of package managers. They're too restrictive in allowing you to do things such as even choosing where to install a package.

Anyways, I rarely use rpm, but maybe you could try doing a "rpm -q -a" (without | grep) to see if libpng12 is listed. If that fails, do "ls /usr/lib/*png*" and see if any of the libraries have version 1.2. If so then you can just ignore the dependency error and install gif2png with the option --nodeps
 
Old 10-14-2004, 10:21 AM   #3
tyleradam
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Okay. I tried it without the grep and got...
Code:
[root]# rpm -q -a libpng
libpng-1.0.14-7
And then I tried..
Code:
[root]# ls /usr/lib/*png* -l
-rw-r--r--    1 root     root         8254 Sep  9 13:44 /usr/lib/libimlib-png.a
-rwxr-xr-x    1 root     root        14183 Sep  9 13:44 /usr/lib/libimlib-png.so
-rw-r--r--    1 root     root       173062 Jul 23 16:48 /usr/lib/libpng.a
lrwxrwxrwx    1 root     root           11 Aug  5 04:11 /usr/lib/libpng.so -> libpng.so.2
lrwxrwxrwx    1 root     root           18 Aug  5 04:11 /usr/lib/libpng.so.2 -> libpng.so.2.1.0.14
-rwxr-xr-x    1 root     root       136712 Jul 23 16:48 /usr/lib/libpng.so.2.1.0.14
lrwxrwxrwx    1 root     root           20 Oct 13 16:42 /usr/lib/libpng12.so.0 -> /usr/lib/libpng.so.2
I messed around with the ln command in here... because I read about it somewhere on the web. So the above might be messed up

But so it says I have libpng-1.0.14-7 installed? And gif2png wants at least libpng-1.2.* im guessing?
 
Old 10-14-2004, 10:39 AM   #4
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
It seems that your libpng12.so.0 is pointing to libpng.so.2.1.0.14 which I doubt is libpng 1.2. Are you sure you installed libpng12?
 
Old 10-14-2004, 10:58 AM   #5
tyleradam
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I am not sure. Is libpng12 the same as libpng-1.2.7? If so, I tried installing libpng-1.2.7 rpm and source. And then I run the rpm -q -a libpng and get --> libpng-1.0.14-7. So is libpng-1.2.7 not being installed correctly? Do I need to uninstall the older versions?
Lost
 
Old 10-14-2004, 12:34 PM   #6
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
perhaps get the newest version of libpng (http://sourceforge.net/project/showf...?group_id=5624) and download the tarball.
Install with: tar xvf libpng-1.2.7.tar.gz; cd libpng-1.2.7; ./configure; make; su -c make install
afterwards run ldconfig as root.
Also, if you want to check what libs you have, use ldconfig -p, it shows what libs are loaded. In your case do a ldconfig -p | grep png
 
Old 10-14-2004, 12:36 PM   #7
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
It should be unless the distribution from which the rpm came from uses a different naming convention (Debian uses libpng2 for some version of libpng before 1.2). Try getting another rpm. To remove libpng, do "rpm -e libpng".
If all else fails, you can download libpng from source and build it. To do that

1. configure --prefix=/usr
2. copy libpng*.so* to /usr/lib (do not do make install, since this will copy a lot of unwanted files other than the
libraries)
3. create symlinks if necessary


now go back to installing the original program that you wanted
 
Old 10-14-2004, 01:08 PM   #8
tyleradam
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the help guys. I got it to work by downloading the latest RPM and doing rpm -ivh --nodeps newrpm.rpm. I then ran the gif2png.rpm and it worked perfectly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libpng and libpng-devel missing in mplayer configure mmarkvillanueva Linux - Software 2 11-29-2005 10:40 PM
installing software is impossible with linux... M O L8ingN2dust Linux - Newbie 10 05-25-2005 01:19 AM
installing i386 software on x86_64 arch--easy way? silex Linux - Software 0 09-09-2004 12:02 PM
MPlayer install problems with libpng & libpng-devel Trey2501 Linux - Newbie 18 03-05-2004 11:24 PM
installing libpng problem yocompia Linux - Newbie 1 06-14-2003 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration