The Old "Zlib not found" error
Posted: 07.08.2009, 06:36
I first ran into this when compiling Celestia on Opensuse 11.1, 32-bit. I installed zlib-devel and still got the error. A Web search showed that I needed a "Perl-Compress" library, so I installed that ... and maybe some X11 libraries (I can't remember now), and it finally stopped giving me the error and built successfully.
A quick pause to say, WELL DONE on 1.6, by the way. That thing is such an improvement over previous versions it ought to be stepped up to version 2.0, in my opinion.
But once again, I'm running across the "zlib not found" when I run ./configure under CentOS 5.3, 64-bit, and nothing I've tried will work. Zlib-devel (both 32 and 64 bit) is (are) installed. The Perl-compress thingie is installed. I went through Yum and clicked/checked just about every X11 development library that I could find and installed it (most of them had already been installed, though, when I installed KDevelop).
While I'm a developer/programmer (mostly Windows and command-line stuff under 'Nix), I'm NOT an Automake/Autoconf guru. But from my read of the configure.in file, and then of config.log, it appears that the configure script is actually test-compiling a little runt program that makes a call to "deflate()." It's at that point that it fails and bails out. It's late and I'm headed to bed at the moment, so I haven't tried compiling that little program myself just to see what happens. But -- again, keeping in mind that I'm not an Automake/conf expert -- I do have to wonder if maybe something in configure.in couldn't be tweaked to avoid this.
(For that matter, I'd like to ask the GNU people why the ./configure thingy needs to start over from scratch each and every time! If you're missing several dependencies, it can take quite some time to get them all resolved, because you basically get to re-run ./configure from the beginning each time until it klongs out on the missing component. But that's for a different forum, not for this one ... )
A quick pause to say, WELL DONE on 1.6, by the way. That thing is such an improvement over previous versions it ought to be stepped up to version 2.0, in my opinion.
But once again, I'm running across the "zlib not found" when I run ./configure under CentOS 5.3, 64-bit, and nothing I've tried will work. Zlib-devel (both 32 and 64 bit) is (are) installed. The Perl-compress thingie is installed. I went through Yum and clicked/checked just about every X11 development library that I could find and installed it (most of them had already been installed, though, when I installed KDevelop).
While I'm a developer/programmer (mostly Windows and command-line stuff under 'Nix), I'm NOT an Automake/Autoconf guru. But from my read of the configure.in file, and then of config.log, it appears that the configure script is actually test-compiling a little runt program that makes a call to "deflate()." It's at that point that it fails and bails out. It's late and I'm headed to bed at the moment, so I haven't tried compiling that little program myself just to see what happens. But -- again, keeping in mind that I'm not an Automake/conf expert -- I do have to wonder if maybe something in configure.in couldn't be tweaked to avoid this.
(For that matter, I'd like to ask the GNU people why the ./configure thingy needs to start over from scratch each and every time! If you're missing several dependencies, it can take quite some time to get them all resolved, because you basically get to re-run ./configure from the beginning each time until it klongs out on the missing component. But that's for a different forum, not for this one ... )