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 on Ubnutu Amazon EC2

config.status: executing libtool commands /bin/bash /home/ubuntu/cphalcon/build/64bits/libtool --mode=compile gcc -I. -I/home/ubuntu/cphalcon/build/64bits -DPHP_ATOM_INC -I/home/ubuntu/cphalcon/build/64bits/include -I/home/ubuntu/cphalcon/build/64bits/main -I/home/ubuntu/cphalcon/build/64bits -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden -c /home/ubuntu/cphalcon/build/64bits/phalcon.zep.c -o phalcon.lo libtool: compile: gcc -I. -I/home/ubuntu/cphalcon/build/64bits -DPHP_ATOM_INC -I/home/ubuntu/cphalcon/build/64bits/include -I/home/ubuntu/cphalcon/build/64bits/main -I/home/ubuntu/cphalcon/build/64bits -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -finline-functions -fomit-frame-pointer -fvisibility=hidden -c /home/ubuntu/cphalcon/build/64bits/phalcon.zep.c -fPIC -DPIC -o .libs/phalcon.o /home/ubuntu/cphalcon/build/64bits/phalcon.zep.c: In function 'pp_syntax_error': /home/ubuntu/cphalcon/build/64bits/phalcon.zep.c:98723:0: warning: "TOKEN" redefined [enabled by default]

define TOKEN (ppminor.pp0)

^ /home/ubuntu/cphalcon/build/64bits/phalcon.zep.c:29228:0: note: this is the location of the previous definition

define TOKEN (aaminor.aa0)

^ /home/ubuntu/cphalcon/build/64bits/phalcon.zep.c: In function 'vv_syntax_error': /home/ubuntu/cphalcon/build/64bits/phalcon.zep.c:116831:0: warning: "TOKEN" redefined [enabled by default]

define TOKEN (vvminor.vv0)

^ /home/ubuntu/cphalcon/build/64bits/phalcon.zep.c:98723:0: note: this is the location of the previous definition

define TOKEN (ppminor.pp0)

Try compiling from ext/:

git clone https://github.com/phalcon/cphalcon
cd cphalcon/ext
sudo ./install