Here is the error message:
cc: 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.
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
The very last thing make was processing is apprentice.lo which appears to be part of the image manipulation libraries (maybe?). I am using Ansible to provision my instance. It is a Digital Ocean single core 512MB VM.
I have been using vagrant / ansible with the same config locally for dev and it has compiled fine, this is the first cloud VM I am attempting to provision. The only difference is the base image for my DO server is coming from DO and for my local dev, I built my own Vagrant box via VirtualBox from a stock CentOS basic server install. I pull it down from my DropBox.
The problem has been experienced by others and reported as a php bug report
My php ansible role up to the error:
---
- name: Download php source
get_url: url={{ php_source_url }} dest=/tmp
register: get_url_result
- name: untar the source package
command: tar -xvf php-{{ php_version }}.tar.gz chdir=/tmp
when: get_url_result.changed or php_reinstall
- name: configure php 5.5
command: >
./configure
--prefix={{ php_prefix }}
--with-config-file-path={{ php_config_file_path }}
--enable-fpm
--enable-ftp
--enable-mbstring
--enable-pdo
--enable-soap
--enable-sockets=shared
--enable-zip
--with-curl
--with-fpm-group={{ nginx_group }}
--with-fpm-user={{ nginx_user }}
--with-freetype-dir=/usr/lib64/
--with-gd
--with-jpeg-dir=/usr/lib64/
--with-libdir=lib64
--with-mcrypt
--with-openssl
--with-pdo-mysql
--with-pear
--with-readline
--with-tidy
--with-xsl
--with-zlib
--without-pdo-sqlite
--without-sqlite3
chdir=/tmp/php-{{ php_version }}
when: get_url_result.changed or php_reinstall
- name: make clean when reinstalling
command: make clean chdir=/tmp/php-{{ php_version }}
when: php_reinstall
- name: make php
command: make chdir=/tmp/php-{{ php_version }}
when: get_url_result.changed or php_reinstall
Thanks in advance for any help. :)