- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- libpng configure can't find zlib
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2008 10:27 AM
тАО04-18-2008 10:27 AM
libpng configure can't find zlib
I've successfully compiled gnu make, zlib, and some other stuff, but now when I try and configure libpng (a PHP dependency) I get:
checking for zlibVersion in -lz... no
configure: error: zlib not installed
It is most definitely installed. I've even tried specifying the location of the headers and libraries:
./configure --libdir=/usr/local/lib/ --includedir=/usr/local/include/
No dice. It actually doesn't even look like it's getting to a point where it looks for headers; it seems like it's trying to run "zlibVersion()" and can't. A little googling seems to indicate I might have to get zlib-dev or zlib1g-dev, neither of which I can find in source form; they only seem to be available as Linux RPMs.
Anybody have any ideas? I'm completely stuck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2008 10:43 AM
тАО04-18-2008 10:43 AM
Re: libpng configure can't find zlib
Use this option
--with-zlib or
--with-zlib=/path-of-zlib
Thanks & Regards
Aashique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2008 11:12 AM
тАО04-18-2008 11:12 AM
Re: libpng configure can't find zlib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2008 11:34 AM
тАО04-18-2008 11:34 AM
Re: libpng configure can't find zlib
The configure options --libdir and --includedir are not telling configure where the existing libraries and headers are located; they're telling where the build process is supposed to put the headers and libraries of the package you're going to build.
Read the INSTALL document file of the libpng package: at least in the source code package of libpng 1.2.26, it has very clear instructions on how to place the zlib package so that the libpng compilation process can find it. The procedure is simple but not quite what you'd expect.
Whenever you have problems with a configure script, examine the config.log file to find out exactly what the script did and how it failed.
zlib-dev and zlib1g-dev of the Linux world are various names for a package containing the header file(s) for zlib. Most Linux distributions split any given source-distributed library package into at least two RPMs (or equivalents) when packaging it for distribution: the first contains the actual library and anything needed to run _pre-compiled_ applications using that library. The second RPM, usually with a "-dev" or "-devel" in its name, contains the header files and anything else required in _compiling_ programs with that library.
Many beginning and intermediate Linux users can nowadays fulfill their computing needs without ever touching a compiler. So it makes sense to package the "compiler stuff" separately, so these users can avoid installing it altogether.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2008 08:11 PM
тАО04-18-2008 08:11 PM
Re: libpng configure can't find zlib
did recently run into an interesting quirk
with some stuff which expected the zlib
library to be a shared object/library, not
the default static (".a") library.
As it says in zlib's "configure" script:
[...]
# To create a shared library, use "configure --shared"; by default a static
# library is created. [...]
It's pretty easy to try, anyway.
You'd need to look more closely at the
"configure" script here to see exactly what
it's doing, if you really want to know why it
complains as it does. If it's trying to make
a shared object/library linked with the zlib
stuff, then the zlib thing must also be a
shared thing (or so I gather).
Hmmm. I might have hit the problem with some
other package, and made the shared zlib
library before I got to libpng. My notes are
not good enough to say.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2008 08:18 PM
тАО04-18-2008 08:18 PM
Re: libpng configure can't find zlib
the ".sl"'s), and I'd bet that I didn't need
to specify any of that --libdir or
--includedir stuff. (The default
/usr/local/whatever worked just fine.)