Plone4.3 failed to install while setting up Pillow with Zope instance in Ubuntu 14.04

Hi,
I have been trying to install Plone in my Ubuntu 14.04 machine for a while, however there seems always some error I can't fix during installation. My default Python is Enthought Canopy's version, which doesn't have Python.h file that Zope needs in order to create its instance. So I used --build-python option during installation.

me@me-N550JV:~/Downloads/Plone-4.3-UnifiedInstaller$ ./install.sh standalone --build-python

me@me-N550JV:~/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.
me@me-N550JV:~/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.

And I followed the instruction and opened the install.log file, here is a portion of the error messages:

 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

I am really frustrated and hope I can get some help in the Plone community. Thanks in advance!

1 Like

fatal error: freetype/fterrors.h: No such file or directory #include <freetype/fterrors.h>

so the Freetype dev package is not installed although it it usually not needed for Pillow (it is optional).
So either install the freetype-dev package or try to use a later version of Pillow (3.0.0 is latest).

-aj