Precautions for installing Plone4.0 in UbuntuServer10.04

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.