LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 08-25-2003, 09:40 AM   #1
diveguy
LQ Newbie
 
Registered: Feb 2002
Location: Near St Louis, MO
Posts: 18

Rep: Reputation: 0
php-4.3.2.tar.gz problem and libpng


Hi,
I am trying to install php-4.3.2.tar.gz using tar -xvzf php-4.3.2.tar.gz. But each time it fails with the following lines:

If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a | so) not found.

I cannot continue with the make until this is resolved. Any ideas and help would be appreciated.

Ver: RH9

Thanks,
Diveguy

Last edited by diveguy; 08-25-2003 at 09:41 AM.
 
Old 08-25-2003, 09:51 AM   #2
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
The libpng module probably isn't installed. Install the module first and try to install PHP again after that.
 
Old 08-25-2003, 10:08 AM   #3
diveguy
LQ Newbie
 
Registered: Feb 2002
Location: Near St Louis, MO
Posts: 18

Original Poster
Rep: Reputation: 0
I've install the rpm

libpng10-1.0.13-8.i386.rpm

and in /usr/lib there are libpng.so.3 and libpng.so.2

I don't have any files called libpng.a or libpng.so. I think I need those but don't know why they don't install.

Is there some other module I should run?

Last edited by diveguy; 08-25-2003 at 10:17 AM.
 
Old 08-25-2003, 10:18 AM   #4
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
I don't know, you'll find out when you try to install PHP again. If it needs another module, it will tell you.

Isn't there a README with a list of dependencies or something like that?
 
Old 11-07-2003, 01:08 AM   #5
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
developers build shared libraries with implicit links to other shared libraries

did you ever find the solution to this problem?

i have the same problem. according to the libpng author compilation errors can occur because "...library developers often build shared libraries with implicit links to other shared libraries..." and gives this example at
http://www.libpng.org/pub/png/pngfaq.html

Quote:
Q: I just recompiled Webalizer--why does it still say it's running with a different version of libpng than it was compiled with?

A: You need to recompile gd, too. Here's the typical error message:

# webalizer -c /foo/webalizer.conf
libpng warning: Application was compiled with png.h from libpng-1.0.8
libpng warning: Application is running with png.c from libpng-1.2.1
gd-png: fatal libpng error: Incompatible libpng version in application and library
Segmentation fault (core dumped)
#

So the installed version of libpng (header files and shared library) in this example is 1.2.1--which presumably is also what your half of the app (e.g., Webalizer) was compiled with. But the gd library on which your app also depends was compiled with libpng 1.0.8. Recompile gd and all will be well--at least with this application.

This is a general limitation (or ``feature'') of Unix-style shared libraries: in order to simplify the link command for application developers, library developers often build shared libraries with implicit links to other shared libraries. Thus one can link with something like Imlib by (say) using only the -limlib link option, despite the fact that it actually has dependencies on more than a dozen other GTK+, Glib, X, and image/compression libraries. Problems arise when both the application itself and one of its libraries link with the same lower-level library (such as libpng or zlib); if the latter gets updated, both the application and the higher-level library or libraries may need to be recompiled.
 
Old 11-07-2003, 09:07 AM   #6
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
Talking libpng-devel-1.2.2-16.i386.rpm

i do not know why it would make any difference to my php compile but i solved this problem by installing the libpng-devel-1.2.2-16.i386.rpm. can anyone explain if this would make a difference?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:40 PM
Mplayer Help (libpng problem) benjaminzsj Linux - Newbie 3 03-18-2005 11:14 PM
MPlayer install problems with libpng & libpng-devel Trey2501 Linux - Newbie 18 03-06-2004 12:24 AM
installing libpng problem yocompia Linux - Newbie 1 06-14-2003 10:41 PM
Updating php 4.3.1 from tar and keeping current php configuration with mandrake 9.1 mrjeep Linux - General 0 04-02-2003 08:50 AM


All times are GMT -5. The time now is 06:23 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration