关于Plone 4.1.3及4.0.7不能在Ubuntu 11.10下安装的问题

问题如下:64位Ubuntu 11.10,安装了所有的升级和补丁,显卡驱动也更新了,从Plone.org下载的Universal installation pack 4.1.3在解压缩之后,运行如下命令:./install.sh standalone –password=123先是那个python编译不能通过,说是什么zip code的问题LookupError: Unknown Encoding: zip然后又是zlib的问题,用了–libz=no参数依然不行然后又是libxml的问题,用了apt-get install libxml依然不行;然后又是buildout运行不正常导致退出的问题。到这里死活过不去,让人感觉这一版本的Plone简直是漏洞百出,问题太多了。其实根本问题就是Plone自带的Python编译没有通过的问题。解决了这个问题后面的都不是问题了。在google.com搜索LookupError: UnknowEncoding: zip这个错误信息,在网站上有一条解答,现摘录如下:

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

Edit:

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

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

在Plone/package下找到python-2.6.7-tar.bz2,将他解压缩,找到里面的setup.py文件,浏览到408行附近,然后按照上面所说的,加上’/usr/lib/x86_64-linux-gnu’,这些红色的内容。别忘了逗号。然后保存这个setup.py文件。下面还需要将解压缩出来的文件重新压缩成python-2.6.7-tar.bz2,再次运行install.sh standalone,Plone的安装就能成功了。PS:上面所说的natty,指的是Ubuntu 11.04。最后,附上成功安装的Console输出。===============================================================Stand-Alone Zope Instance selectedDetailed installation log being written to /home/liuyz/Plone-4.1.3-UnifiedInstaller/install.logRoot install method chosen. Will install for use by system user ploneInstalling Plone 4.1.3 at /usr/local/PloneUser ‘plone’ already exists. No need to create it.Compiling and installing jpeg local libraries …Skipping zlib buildCompiling and installing readline local libraries …Installing Python 2.6.7. This takes a while…Patching for Debian/Ubuntu MultiarchPatching for thread sizePatching for disabled ssl2Installing distribute…Python build looks OK.Unpacking buildout cache to /usr/local/Plone/buildout-cacheCompiling .py files in egg cacheCopying Plone-docsYour platform’s xml2/xslt are missing or out-of-date. We’ll need to build them.Copying buildout skeletonFixing up bin/buildoutBuilding lxml with static libxml2/libxslt; this takes a while…Building Zope/Plone; this takes a while…Setting instance ownership to ploneSetting buildout cache ownership to plone########################################################################################### Installation Complete ######################Plone successfully installed at /usr/local/PloneSee /usr/local/Plone/zinstance/README.htmlfor startup instructionsUse the account information below to log into the Zope Management InterfaceThe account has full ‘Manager’ privileges. Username: admin Password: 123This account is created when the object database is initialized. If you changethe password later (which you should!), 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 – You can read/post to the lists via – Submit feedback and report errors at (For install problems, specify component “Installer (Unified)”)

,送给中意的TA,背面写上:某年某月某日,

关于Plone 4.1.3及4.0.7不能在Ubuntu 11.10下安装的问题

相关文章:

你感兴趣的文章:

标签云: