2015-10-06 80 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)