Online Shopping : Computers : Programming : Languages : PHP : Installation and Setup : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

161 of 180 people (89%) answered Yes
Recently 9 of 10 people (90%) answered Yes


When starting apache i get "Cannot load /usr/local/apache_1.3.12/libexec/ into server: undefined symbol: uncompress"
undefined reference to `compress'

Oct 30th, 2008 03:54
games games, David Greenberg, Thomas tanghus, Guest, Matthew Gregory, Beauford Beauford,

"uncompress" comes from<version>, which is a DSO library that 
must be installed on your system in a library directory.  This library 
provides support for various compression utilities, similar to the 
functionality of the <uncompress> or <gunzip> commands.
If you don't have it already, install the latest version of zlib.  
the link above.)  
Be sure to run <ldconfig> as root to configure your newly installed library file. ldconfig creates a shared library cache and 
maintains symbolic links to the actual library files, with appropriate 
version numbers.  
The above problem may occur regardless of whether you configure PHP's 
build using the --without-zlib option.
If you compile in MySQL support -- and most people do -- MySQL's 
library (also a dynamically linked library) requires the functionality 
of ZLIB.
To fix the problem, all you have to do, right before you run 
PHP's "make", is 
to edit your top-level Makefile and modify the following line:
The important part is the -lz, which is not present by default.
Now, you can run make and then make install, and everything should 
You can verify dependencies of the module as follows:
[[email protected] apache]$ ldd libexec/ => /usr/lib/ (0x40129000) => /lib/ (0x40138000) => /lib/ (0x40140000) => /usr/lib/ (0x40143000) => /lib/ (0x40179000) => /lib/ (0x40188000) => /lib/ (0x401a5000) => /lib/ (0x401d2000) => /lib/ (0x401e8000)
        /lib/ => /lib/ (0x80000000)
[[email protected] apache]$ 
See how libz is listed?  This is *essential*.  If this occurs, you 
should be in good shape.
P.S: I ran into this problem on RH Linux 6.1 with patches. I have not 
tested on other systems.  zlib is available for almost every flavor of 
PPS: If you don't use MySQL and you don't plan to use the compression 
library, configure using --without-zlib.