Can't install Plone - lxml problem - centos 6 vps

Hi

I'm new to plone, try to install on centos 6 and have problems.

Error: Couldn't install: lxml 2.3.6
[root@centos-512mb-nyc1-01 Plone-4.3.6-UnifiedInstaller]# ./install.sh standalone

Testing /usr/bin/python2.7 for Zope/Plone requirements....
/usr/bin/python2.7 looks OK. We'll try to use it.

Root install method chosen. Will install for use by users:
ZEO & Client Daemons: plone_daemon
Code Resources & buildout: plone_buildout

Detailed installation log being written to /root/Plone-4.3.6-UnifiedInstaller/install.log
Installing Plone 4.3.6 at /usr/local/Plone

Using useradd and groupadd to create users and groups.
'plone_group' already exists; no need to create it.
User 'plone_daemon' already exists. No need to create it.
Adding user plone_daemon to group plone_group.
User 'plone_buildout' already exists. No need to create it.
Adding user plone_buildout to group plone_group.
Creating python virtual environment, no site packages, no setuptools.
New python executable in /usr/local/Plone/Python-2.7/bin/python2.7
Also creating executable in /usr/local/Plone/Python-2.7/bin/python
Skipping libjpeg build
Unpacking buildout cache to /usr/local/Plone/buildout-cache
Setting /usr/local/Plone ownership to plone_buildout:plone_group
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 /root/Plone-4.3.6-UnifiedInstaller/install.log
to determine the cause.

========

Got Pillow 2.6.1.
Not found: /usr/local/Plone/buildout-cache/downloads/dist/lxml/
Not found: /usr/local/Plone/buildout-cache/downloads/dist/lxml/
Getting distribution for 'lxml==2.3.6'.
{standard input}: Assembler messages:
{standard input}:523049: Error: unknown pseudo-op: `.uleb1'
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See http://bugzilla.redhat.com/bugzilla for instructions.
Building lxml version 2.3.6.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in the following directory: /usr/lib64
error: Setup script exited with error: command 'gcc' failed with exit status 4
An error occurred when trying to install lxml 2.3.6. Look above this message for any errors that were output by easy_install.
While:
Installing instance.
Getting distribution for 'lxml==2.3.6'.
Error: Couldn't install: lxml 2.3.6

========

This happens with plone 4 and plone 5.

Just can't install plone on centos 6.

Thanks.

Yes installing on Centos 6 can be particularly painful (if possible use something else).
Knowing that that isn't always an option, here's what worked for me:

  1. Make sure you have the dependencies:

    > yum install git gcc-c++ patch openssl-devel libjpeg-devel libxslt-devel readline-devel make which -y
    
  2. When running the installer use the additional --build-python and --static-lxml=yes options

    ./install.sh standalone --build-python --static-lxml=yes

I just noticed the error about cc1 being killed. This is sometimes due to memory limits.
If you get the error again, you'll want to create a swap file (even temporarily to support the compile).
Here's how I did it for a server that had only 512MB of RAM (run the commands below as root of course):

    dd if=/dev/zero of=/swapfile bs=1024 count=500000
    mkswap /swapfile
    chmod 600 /swapfile
    swapon /swapfile

Then try the installation again.

Thanks a lot for replying so fast and efficient.

It is working.

500 mega vps centos

Plone 5 looks really good.

No problem.
Would be good to get a newer version of Centos, if you're stuck with this, carry on.