For the installation method, see install Plone3.3.5 in javastuserver10.04 and compile "Compressionrequiresthe (missing) zlibmodule" RuntimeError: Compressionrequiresthe (missing) zli.
For the installation method, see install Plone3.3.5 under Ubuntu Server 10.04.
Http://www.linuxidc.com/Linux/2010-08/27673.htm
Appears:
"Compression requires the (missing) zlib module"
RuntimeError: Compression requires the (missing) zlib module
.
Solution:
1. Install zlib
To install the latest zlib-1.2.5f, install the Zlib-1.2.1 as follows.
Expected Compilation Time: 0.1 SBU
Expected hard disk space: 1.5 MB
Zlib content
The Zlib package contains the zlib library, which is used by many program compression or decompression functions.
Install the following library files: libz [a, so]
Zlib installation dependency
Zlib depends on: Binutils, Coreutils, GCC, Glibc, Make, Sed.
Install Zlib
Prepare for Zlib Compilation:
./Configure -- prefix =/usr -- shared
NOTE: If CFLAGS is specified in the environment variable, Zlibis cannot compile the shared library normally. If you have specified your own CFLAGS environment variable, add-fPIC to the beginning of CFLGAS and remove this parameter after installation.
Compile the software package:
Make
This software package comes with a test suite to test whether it is correctly compiled. Because Zlib's test suite is fast and harmless, we recommend that you run it. The following command tests the Shared Library:
Make check
Install the Shared Library:
Make install
Compile a non-shared library (static library ):
Make clean
./Configure -- prefix =/usr
Make
The following command tests the static Library:
Make check
Install static Library:
Make install
Modify static library permissions:
Chmod 644/usr/lib/libz.
Installing important programs and library files in the/lib directory is a good habit, especially when/usr is in different partitions. All programs in the/bin or/sbin directory must be in the/lib directory. When the/usr partition cannot be loaded, important programs can still be used.
Therefore, we move the shared zlib library file to the/lib directory:
Mv/usr/lib/libz. so. */lib
The/usr/lib/libz. so symbolic link points to a non-existent file because we moved it. Create a symbolic link pointing to a new location:
Ln-sf.../../lib/libz. so.1/usr/lib/libz. so
2. Install plone4.0