Phalcon installation error

creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h /bin/sh /opt/cphalcon/build/64bits/libtool --mode=compile gcc -I. -I/opt/cphalcon/build/64bits -DPHPATOMINC -I/opt/cphalcon/build/64bits/include -I/opt/cphalcon/build/64bits/main -I/opt/cphalcon/build/64bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -DPHALCONRELEASE -DHAVECONFIGH -O2 -fomit-frame-pointer -fvisibility=hidden -c /opt/cphalcon/build/64bits/phalcon.zep.c -o phalcon.lo mkdir .libs gcc -I. -I/opt/cphalcon/build/64bits -DPHPATOMINC -I/opt/cphalcon/build/64bits/include -I/opt/cphalcon/build/64bits/main -I/opt/cphalcon/build/64bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -DPHALCONRELEASE -DHAVECONFIGH -O2 -fomit-frame-pointer -fvisibility=hidden -c /opt/cphalcon/build/64bits/phalcon.zep.c -fPIC -DPIC -o .libs/phalcon.o

In file included from /opt/cphalcon/build/64bits/phalcon.zep.c:175: /opt/cphalcon/build/64bits/phalcon.zep.h:18779:7: warning: no newline at end of file /opt/cphalcon/build/64bits/phalcon.zep.c:203:30: error: ext/spl/splheap.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:204:36: error: ext/spl/splexceptions.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:205:35: error: ext/spl/spldirectory.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:206:35: error: ext/spl/spliterators.h: No such file or directory In file included from /usr/include/php/ext/date/lib/timelib.h:24, from /usr/include/php/ext/date/phpdate.h:24, from /opt/cphalcon/build/64bits/phalcon.zep.c:207: /usr/include/php/ext/date/lib/timelibstructs.h:24:28: error: timelibconfig.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:216:32: error: Zend/zendclosures.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:1477: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘zephirptrdtor’ /opt/cphalcon/build/64bits/phalcon.zep.c:1478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘zephir_dtor’ /opt/cphalcon/build/64bits/phalcon.zep.c:1799: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘int’ /opt/cphalcon/build/64bits/phalcon.zep.c:1829: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘int’

Getting the following error on installation on Centos 5.11with a 32 bit machine.. I am new to phalcon but it seems that the git source code does not contain few ext libraries



336

The PHP version that is being used here is 5.4.19

edited May '16

Where is MongoDB issue from your post title? This is classic Phalcon compilation problem, i.e. you're missing core libs. Wait, you're compiling 64bit Phalcon on 32bit machine? Are you sure that your machine is not amd64 but i386? Since the installer of Phalcon will do basic checks like what is target architecture before trying to compile.

Post here your lsb-release -a and uname -a.

In any case, on your CentOS you need: sudo yum install php-devel php-mysql gcc libtool

https://phalconphp.com/en/download



336

Sorry for the title .. The machine configuration and centos version is as follows :- uname -a Linux 2.6.18-371.6.1.el5 #1 EDT 2014 x8664 x8664 x86_64 GNU/Linux

cat /etc/*-release CentOS release 5.11 (Final)

I also ran it with the command ./install 32bits but it gave the same error.

Where is MongoDB issue from your post title? This is classic Phalcon compilation problem, i.e. you're missing core libs. Wait, you're compiling 64bit Phalcon on 32bit machine? Are you sure that your machine is not amd64 but i386? Since the installer of Phalcon will do basic checks like what is target architecture before trying to compile.

Post here your lsb-release -a and uname -a.

In any case, on your CentOS you need: sudo yum install php-devel php-mysql gcc libtool

https://phalconphp.com/en/download

So, you're running amd64, not i386 machine/OS. Does your machine satisfy dependencies php-devel php-mysql gcc libtool ?



336

Yes they do..

yum install php-devel php-mysql gcc libtool Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirror.nbrc.ac.in * epel: mirror.wanxp.id * extras: mirror.nbrc.ac.in * updates: mirror.nbrc.ac.in Setting up Install Process Package php-devel-5.1.6-45.el511.x8664 already installed and latest version Package php-mysql-5.1.6-45.el511.x8664 already installed and latest version Package gcc-4.1.2-55.el5.x8664 already installed and latest version Package libtool-1.5.22-7.el54.x86_64 already installed and latest version Nothing to do

So, you're running amd64, not i386 machine/OS. Does your machine satisfy dependencies php-devel php-mysql gcc libtool ?