The problem that Plone4.1.3 and 4.0.7 cannot be installed under Ubuntu11.10

Source: Internet
Author: User
Tags plone
The problem is as follows: 64-bit Ubuntu11.10 is installed with all the upgrades and patches, and the graphics card driver is also updated. After decompression, run the following command after Universalinstallationpack4.1.3 downloaded from Plone.org :. /install. shstandalone -- password = 123 First, the python compilation fails. It is a zipcode problem. LookupError: UnknownEncodi:
64-bit Ubuntu 11.10 is installed with all the upgrades and patches, and the graphics card driver is also updated. After decompressing the Universal installation pack 4.1.3 downloaded from Plone.org, run the following command:
./Install. sh standalone -- password = 123
First, the python compilation fails. It is a zip code problem. LookupError: Unknown Encoding: zip
Then there is a zlib problem. If the -- libz = no parameter is used, it still does not work.
Then there is another libxml problem. It still does not work if apt-get install libxml is used;
Then, the problem of exit is caused by abnormal buildout operation. It seems that this version of Plone is full of loopholes and there are too many problems.

In fact, the root problem is that Python compilation in Plone fails. The problem is solved.
Search for LookupError: UnknowEncoding: zip on google.com and have an answer on the http://stackoverflow.com website. The following is an excerpt:

Its an issue with the Python disutils and the new multilib setup of natty. I ran into the same issue trying to get sqlite support in Python built from source.

You can hack around it in the detect modules section of the setup. py

Http://bugs.python.org/issue9762

Edit:

To work around it, changelib_dirsIn the python setup. py (around line 408) to this (for an x86_64 machine ):

lib_dirs = self.compiler.library_dirs + [
    '/lib64', '/usr/lib64',
    '/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu',
    ]

(The/usr/lib/x86_64-linux-gnu is missing)

Find python-2.6.7-tar.bz2 under Plone/package, decompress it, find the setup. py file in it, browse to the vicinity of line 408, and add '/usr/lib/x86_64-linux-gnu',The red content. Do not forget the comma. Then save the setup. py file.

Next, compress the uncompressed files into python-2.6.7-tar.bz2 and run install. sh standalone again. Then, Plone can be installed successfully.

PS: the natty mentioned above refers to Ubuntu 11.04.

Finally, the output of the successfully installed Console is attached.
========================================================== ======================================
Stand-Alone Zope Instance selected

Detailed installation log being written to/home/liuyz/Plone-4.1.3-UnifiedInstaller/install. log

Root install method chosen. Will install for use by system user plone

Installing Plone 4.1.3 at/usr/local/Plone

User 'plone 'already exists. No need to create it.
Compiling and installing jpeg local libraries...
Skipping zlib build
Compiling and installing readline local libraries...
Installing Python 2.6.7. This takes a while...
Patching for Debian/Ubuntu Multiarch
Patching for thread size
Patching for disabled ssl2
Installing distribute...
Python build looks OK.
Unpacking buildout cache to/usr/local/Plone/buildout-cache
Compiling. py files in egg cache
Copying Plone-docs
Your platform's xml2/xslt are missing or out-of-date. We'll need to build them.
Copying buildout skeleton
Fixing up bin/buildout
Building lxml with static libxml2/libxslt; this takes a while...
Building Zope/Plone; this takes a while...
Setting instance ownership to plone
Setting buildout cache ownership to plone
 
######################################## #############################
###################### Installation Complete ######################
 
Plone successfully installed at/usr/local/Plone
See/usr/local/Plone/zinstance/README.html
For startup instructions
 
Use the account information below to log into the Zope Management Interface
The account has full 'manager' privileges.
 
  Username: admin
  Password: 123

This account is created when the object database is initialized. If you change
The password later (which you shoshould !), You'll need to use the new password.
 
-If you need help, ask the mailing lists or # plone on irc.freenode.net.
-The live support channel also exists at http://plone.org/chat
-You can read/post the lists via http://plone.org/forums
 
-Submit feedback and report errors at http://dev.plone.org/plone
(For install problems, specify component "Installer (Unified )")
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.