失败的Plone 4.1.4安装:lxml构建失败:libxml2:

时间:2012-03-22 02:34:06

标签: plone

预期结果:

Successful installtion of Plone 4.1.4 

实际结果:

Installation fails with: libxml2: cmmi failed:

堆栈:

Ubuntu  Ubuntu 10.04.4 LT (Lucid)
Apache 2.2.14
Plone-4.1.4-UnifiedInstaller

安装系统库,头文件等

root@li54-28:~#apt-get update
root@li54-28:~#apt-get install g++ python-dev python-setuptools python-lxml python-libxml2 libxml2-dev libxslt1-dev openssl subversion

安装Plone

joeblow@li54-28:~/Plone-4.1.4-UnifiedInstaller$ ./install.sh standalone --target=${HOME} --instance=joeblow.org
  

Stand-Alone Zope Instance selected

Detailed installation log being written to /home/joeblow/Plone-4.1.4-UnifiedInstaller/install.log

Rootless install method chosen. Will install for use by system user joeblow

Installing Plone 4.1.4 at /home/joeblow

Skipping libjpeg build
Skipping zlib build
Skipping readline build
Installing Python 2.6.7. This takes a while...
Patching for thread size
Installing distribute...
Python build looks OK.
Unpacking buildout cache to /home/joeblow/buildout-cache
Compiling .py files in egg cache
Copying Plone-docs
Generating random password ...
****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...

lxml build failed. You may wish to clean up and try again
without the lxml build by adding --without-lxml to the
command line.
Buildout returned an error code: 1; Aborting.
Buildout failed. Unable to continue

Installation has failed.
See the detailed installation log at /home/joeblow/Plone-4.1.4-UnifiedInstaller/install.log
to determine the cause.
     

* 请注意安装程序说:**您的平台的xml2 / xslt缺失或已过期,然后尝试构建它们。但我已经通过apt-get install安装了它们......

故障排除

joeblow@li54-28:~/Plone-4.1.4-UnifiedInstaller$ tail -75 install.log

/

bin/bash ./libtool --tag=CC   --mode=link gcc  -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls   -o testReader testReader.o ./libxml2.la  -lz  -lm
libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o .libs/testReader testReader.o  ./.libs/libxml2.so -ldl -lz -lm -Wl,-rpath -Wl,/home/joeblow/joeblow.org/parts/lxml/libxml2/lib
gcc -DHAVE_CONFIG_H -I. -I./include -I./include  -D_REENTRANT      -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT testapi.o -MD -MP -MF .deps/testapi.Tpo -c -o testapi.o testapi.c
testapi.c: In function âtest_xmlBufferSetAllocationSchemeâ:
testapi.c:18773: warning: comparison of distinct pointer types lacks a cast
testapi.c: At top level:
testapi.c:17989: warning: âgen_xmlSchematronPtrâ defined but not used
testapi.c:17992: warning: âdes_xmlSchematronPtrâ defined but not used
testapi.c:18009: warning: âgen_xmlSchematronParserCtxtPtrâ defined but not used
testapi.c:18012: warning: âdes_xmlSchematronParserCtxtPtrâ defined but not used
testapi.c:34157: warning: âgen_xmlSAXHandlerPtr_ptrâ defined but not used
testapi.c:34160: warning: âdes_xmlSAXHandlerPtr_ptrâ defined but not used
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make[2]: *** [testapi.o] Error 1
make[2]: Leaving directory `/tmp/tmp8quJWJbuildout-libxml2/libxml2-2.7.8'
**make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/tmp8quJWJbuildout-libxml2/libxml2-2.7.8'
make: *** [all] Error 2
**libxml2: cmmi failed:** /tmp/tmp8quJWJbuildout-libxml2**
While:
  Installing lxml.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/home/joeblow/buildout-cache/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 1683, in main
    getattr(buildout, command)(args)
  File "/home/joeblow/buildout-cache/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 555, in install
    installed_files = self[part]._call(recipe.install)
  File "/home/joeblow/buildout-cache/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 1227, in _call
    return f()
  File "/home/joeblow/buildout-cache/eggs/z3c.recipe.staticlxml-0.7.2-py2.6.egg/z3c/recipe/staticlxml/__init__.py", line 169, in install
    self.build_libxml2()
  File "/home/joeblow/buildout-cache/eggs/z3c.recipe.staticlxml-0.7.2-py2.6.egg/z3c/recipe/staticlxml/__init__.py", line 129, in build_libxml2
    loc = self.xml2_cmmi.install()
  File "/home/joeblow/buildout-cache/eggs/zc.recipe.cmmi-1.3.4-py2.6.egg/zc/recipe/cmmi/__init__.py", line 99, in install
    self.build()
  File "/home/joeblow/buildout-cache/eggs/zc.recipe.cmmi-1.3.4-py2.6.egg/zc/recipe/cmmi/__init__.py", line 182, in build
    self.cmmi(dest)
  File "/home/joeblow/buildout-cache/eggs/zc.recipe.cmmi-1.3.4-py2.6.egg/zc/recipe/cmmi/__init__.py", line 208, in cmmi
    system("make")
  File "/home/joeblow/buildout-cache/eggs/zc.recipe.cmmi-1.3.4-py2.6.egg/zc/recipe/cmmi/__init__.py", line 31, in system
    raise SystemError("Failed", c)
SystemError: ('Failed', 'make')

** * *** 选择版本 ** * ** * * [版本]

** * *** / PICKED VERSIONS的 ** * ** *

libxml2-dev包信息

root@li54-28:~# apt-cache show libxml2-dev
Package: libxml2-dev
Priority: optional
Section: libdevel
Installed-Size: 2116
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian XML/SGML Group <debian-xml-sgml-pkgs@lists.alioth.debian.org>
Architecture: i386
Source: libxml2
Version: 2.7.6.dfsg-1ubuntu1.4
Replaces: libxml2 (<= 2.6.6-1), libxml2-headers (= 2.6.7-1)
Depends: libxml2 (= 2.7.6.dfsg-1ubuntu1.4), zlib1g-dev | libz-dev
Conflicts: libxml2 (<= 2.6.6-1), libxml2-headers (= 2.6.7-1)
Filename: pool/main/libx/libxml2/libxml2-dev_2.7.6.dfsg-1ubuntu1.4_i386.deb
Size: 753312
MD5sum: 5c7bc3d0979cf1078ebee42b199d454a
SHA1: 9bc9c14507b08c0a9e192fa4d136c84af1e4079b
SHA256: 426c56e2ef30f3c1341126f736f084b73b506c17bb339f92e1b2c18745e6eed9
Description: Development files for the GNOME XML library
 XML is a metalanguage to let you design your own markup language.
 A regular markup language defines a way to describe information in
 a certain class of documents (eg HTML). XML lets you define your
 own customized markup languages for many classes of document. It
 can do this because it's written in SGML, the international standard
 metalanguage for markup languages.
 .
 Install this package if you wish to develop your own programs using
 the GNOME XML library.
Homepage: http://xmlsoft.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 18m

Package: libxml2-dev
Priority: optional
Section: libdevel
Installed-Size: 2116
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian XML/SGML Group <debian-xml-sgml-pkgs@lists.alioth.debian.org>
Architecture: i386
Source: libxml2
Version: 2.7.6.dfsg-1ubuntu1
Replaces: libxml2 (<= 2.6.6-1), libxml2-headers (= 2.6.7-1)
Depends: libxml2 (= 2.7.6.dfsg-1ubuntu1), zlib1g-dev | libz-dev
Conflicts: libxml2 (<= 2.6.6-1), libxml2-headers (= 2.6.7-1)
Filename: pool/main/libx/libxml2/libxml2-dev_2.7.6.dfsg-1ubuntu1_i386.deb
Size: 750710
MD5sum: 7272dcc6226fa95ab767f382aa562862
SHA1: b049bffa4a86c1ade69d0f2e6cf1ee88a675149e
SHA256: b9df88fafe1ed33bd029127d216cffce98ada1201b22802657ef5be1f77e016c
Description: Development files for the GNOME XML library
 XML is a metalanguage to let you design your own markup language.
 A regular markup language defines a way to describe information in
 a certain class of documents (eg HTML). XML lets you define your
 own customized markup languages for many classes of document. It
 can do this because it's written in SGML, the international standard
 metalanguage for markup languages.
 .
 Install this package if you wish to develop your own programs using
 the GNOME XML library.
Homepage: http://xmlsoft.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 18m

注意

即使Plone安装失败,它仍然创建了网站目录,buildout.cfg和一个名为 lxml_static.cfg 的好奇文件

我无法找到关于lxml_static.cfg的更多内容,但我确实遇到了这个link。由于安装完全失败,这看起来像一个完全不同的buldout我不确定它是否直接相关。

任何提示?

3 个答案:

答案 0 :(得分:3)

通过在dev.plone.org上提交票证可以更好地处理这类问题。

您的系统有libxml2,但libxslt可能不够用;除了最新版本之外的所有版本都是如此。

不幸的是,install.log报告不是很有帮助。相关的一行是:

gcc: Internal error: Killed (program cc1)

但是没有说明它被杀的原因。但是,这确实告诉我们gcc被外部进程杀死而不是像编译错误那样。您的系统日志可能会告诉您更多信息(例如,因为YYY原因而被杀死的进程XXX)。

您的用户限制是否可能设置得如此保守,以至于它们不允许进行内存/ CPU密集型构建?如果是这样,请检查您的系统管理员。

答案 1 :(得分:2)

作为一个仅供参考,我们在从统一安装程序部署Plone之前将以下内容用于Ubuntu:

apt-get install libxml2 libxml2-dev libxslt1-dev libbz2-dev libssl-dev p7zip-full rar lha unrar unzip unace unp bzip2 gzip patch

答案 2 :(得分:1)

看起来我遇到了一个潜在的错误(感谢@SteveM)尝试在Ubuntu 10.04.4 LT(Lucid)上安装Plone 4.1.4。如果您遇到类似问题,可以在此处跟踪潜在错误:dev.plone.org/ticket/12795

解决方案:不使用lxml安装!!

./install.sh standalone --target="${HOME}/plone" --instance=${WEBSITE_NAME} --without-lxml

感谢您的游戏