2015-10-06 68 views
1

我试图Plone的安装到我的Ubuntu 14.04,但是install.sh给我的错误:的Plone不能成立Zope实例时安装枕头1.7.8

Installing instance. Getting distribution for 'Pillow==1.7.8'. 
    warning: no previously-included files found matching '.hgignore' 
    warning: no previously-included files found matching '.hgtags' 
    warning: no previously-included files found matching 'BUILDME.bat' 
    warning: no previously-included files found matching 

'make-manifest.py' warning: no previously-included files found 
matching 'SHIP' warning: no previously-included files found matching 
'SHIP.bat' warning: no previously-included files matching '*' found 
under directory 'Tests' _imaging.c:3017:5: warning: 
initialization from incompatible pointer type [enabled by default] 
    (inquiry) image_length, /*sq_length*/ 
    ^ _imaging.c:3017:5: warning: (near initialization for ‘image_as_sequence.sq_length’) [enabled by default] 
_imaging.c:3077:5: warning: initialization from incompatible pointer type [enabled by default] 
    (inquiry) NULL, /*mp_length*/ 
    ^ _imaging.c:3077:5: warning: (near initialization for ‘pixel_access_as_mapping.mp_length’) [enabled by default] 
_imaging.c: In function ‘_filter’: _imaging.c:842:8: warning: ‘kernelsize’ may be used uninitialized in this function 
[-Wmaybe-uninitialized] 
    if (kernelsize != xsize * ysize) { 
    ^libImaging/Quant.c: In function ‘rehash_collide’: libImaging/Quant.c:154:10: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast] *valp=(void *)((*(int 
*)valp)+(*(int *)&newval)); 
     ^ _imagingft.c:73:31: fatal error: freetype/fterrors.h: No such file or directory #include <freetype/fterrors.h> 
          ^compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1 An 
error occurred when trying to install Pillow 1.7.8. Look above this 
message for any errors that were output by easy_install. While:  
Installing instance. Getting distribution for 'Pillow==1.7.8'. 
Error: Couldn't install: Pillow 1.7.8 

这里是我做过什么使用统一安装程序:

我使用--build-python选项,因为我使用的是Enthought Canopy版本的Python,它没有Zope需要的Python.h来构建它的实例。所以我只是建立一个新的python--老实说我不知道​​它是如何工作的,但我猜测它使用virtualenv来隔离安装环境,如果我错了,请纠正我。

[email protected]:~/Downloads/Plone-4.3-UnifiedInstaller$ ./install.sh standalone --build-python 

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

Detailed installation log being written to /home/me/Downloads/Plone-4.3-UnifiedInstaller/install.log 
Installing Plone 4.3 at /home/me/Plone 

Skipping libjpeg build 
Skipping readline build 
Installing Python-2.7.3. This takes a while... 
Installing distribute... 
Warning: This Python does not have readline support. 
It may still be usable for Zope, but interacting directly with Python will be painful. 

Python build looks OK. 
Unpacking buildout cache to /home/me/Plone/buildout-cache 
Copying Plone-docs 
Copying buildout skeleton 
Fixing up bin/buildout 
Building Zope/Plone; this takes a while... 
Buildout returned an error code: 1; Aborting. 
Buildout failed. Unable to continue 

Installation has failed. 
See the detailed installation log at /home/me/Downloads/Plone-4.3-UnifiedInstaller/install.log 
to determine the cause. 

有人可以解释我怎么可以解决枕头问题,并得到Plone安装在我的机器?非常感谢!

+0

大概是这个http://unix.stackexchange.com/questions/105265/install-pil-pillow-via-pip-in-debian-testing-jessie –

+0

也许你可以试试更高版本的Plone - 比如4.3.7? – Danimal

+0

在我的Ubuntu Canopy上Python.h可以在“Home/Canopy/appdata/canopy-1.5.5.3123.rh5-x86_64/include/python2.7 /找到该文件不存在于您的安装中吗? –

回答

1

安装这样 运行./install.sh --target = /家庭/ tclap1006/all_folders/unifiedinstallers/Plone的--build-python的独立

这里--target的路径(是指在目录ü希望安装你的Plone)