Open natea opened 10 years ago
I tried to build it in a clean Docker container of base Ubuntu 12.04, and the same error occurred. This time I looked at the install.log file and saw this:
Got Pillow 1.7.8.
Getting distribution for 'lxml==2.3.6'.
Killed
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Building lxml version 2.3.6.
Building without Cython.
Using build configuration of libxslt 1.1.26
Building against libxml2/libxslt in the following directory: /usr/lib/x86_64-linux-gnu
error: Setup script exited with error: command 'gcc' failed with exit status 4
So now I'm running install.sh with the --static-lxml flag, and we'll see how that goes.
Nope, that didn't work either:
lxml: Using xslt-config found in /usr/local/Plone/zeocluster/parts/lxml/libxslt/bin/xslt-config.
lxml: Using xml2-config found in /usr/local/Plone/zeocluster/parts/lxml/libxml2/bin/xml2-config.
lxml: Removing dynamic libs from path /usr/local/Plone/zeocluster/parts/lxml/libxslt ...
lxml: Removing dynamic libs from path /usr/local/Plone/zeocluster/parts/lxml/libxml2 ...
lxml: Adding LDFLAGS to prevent underlinking of librt
lxml: Building lxml ...
Killed
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
Building lxml version 2.3.6.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in one of the following directories:
/usr/local/Plone/zeocluster/parts/lxml/libxslt/lib
/usr/local/Plone/zeocluster/parts/lxml/libxml2/lib
error: Setup script exited with error: command 'gcc' failed with exit status 4
According to this Stackoverflow post, to avoid this error you need to extend your RAM by creating a swap file: http://stackoverflow.com/questions/18334366/out-of-memory-issue-in-installing-packages-on-ubuntu-server
More info here: https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
hey Godefroid! I just tried your Plone Dockerfile using the latest Docker 0.7, and encountered this error:
Did you ever get it working?