We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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 -DPHP_ATOM_INC -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 -DPHALCON_RELEASE -DHAVE_CONFIG_H -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 -DPHP_ATOM_INC -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 -DPHALCON_RELEASE -DHAVE_CONFIG_H -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/spl_heap.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:204:36: error: ext/spl/spl_exceptions.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:205:35: error: ext/spl/spl_directory.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:206:35: error: ext/spl/spl_iterators.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/php_date.h:24, from /opt/cphalcon/build/64bits/phalcon.zep.c:207: /usr/include/php/ext/date/lib/timelib_structs.h:24:28: error: timelib_config.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:216:32: error: Zend/zend_closures.h: No such file or directory /opt/cphalcon/build/64bits/phalcon.zep.c:1477: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘zephir_ptr_dtor’ /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



674

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://phalcon.io/en/download



674

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 x86_64 x86_64 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://phalcon.io/en/download

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



674

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.el5_11.x86_64 already installed and latest version Package php-mysql-5.1.6-45.el5_11.x86_64 already installed and latest version Package gcc-4.1.2-55.el5.x86_64 already installed and latest version Package libtool-1.5.22-7.el5_4.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 ?