PHP source code

cd ~/downloads/MAMP_components_2.1.2/

tar xzvf php5.6.10.tar.gz

mkdir /Applications/MAMP/bin/php/php5.6.10/include

mv php5.6.10 /Applications/MAMP/bin/php/php5.6.10/include/php

cd /Applications/MAMP/bin/php/php5.6.10/include/php

./configure

autoconf

cd ~/downloads

curl -OL https://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz

tar xzvf autoconf-latest.tar.gz

cd autoconf-2.69

./configure ; make ; sudo make install

automake

cd ~/downloads

curl -OL https://ftpmirror.gnu.org/automake/automake-1.14.tar.gz

tar xzvf automake-1.14.tar.gz

cd automake-1.14

./configure ; make ; sudo make install

libtool

cd ~/downloads

curl -OL https://ftpmirror.gnu.org/libtool/libtool-2.4.tar.gz

tar xzvf libtool-2.4.tar.gz

cd libtool-2.4

./configure ; make ; sudo make install

phalcon extension

export PATH=/Applications/MAMP/bin/php/php5.4.4/bin:$PATH

cd ~/downloads

curl -L -o cphalcon-master.zip https://github.com/phalcon/cphalcon/archive/master.zip

unzip cphalcon-master.zip

cd cphalcon-master/build

sudo ./install

creating libtool appending configuration tag "CXX" to libtool configure: creating ./config.status config.status: creating config.h /bin/sh /Users/mah/Downloads/cphalcon-master/build/64bits/libtool --mode=compile gcc -I. -I/Users/mah/Downloads/cphalcon-master/build/64bits -DPHP_ATOM_INC -I/Users/mah/Downloads/cphalcon-master/build/64bits/include -I/Users/mah/Downloads/cphalcon-master/build/64bits/main -I/Users/mah/Downloads/cphalcon-master/build/64bits -I/Applications/MAMP/bin/php/php5.6.10/include/php -I/Applications/MAMP/bin/php/php5.6.10/include/php/main -I/Applications/MAMP/bin/php/php5.6.10/include/php/TSRM -I/Applications/MAMP/bin/php/php5.6.10/include/php/Zend -I/Applications/MAMP/bin/php/php5.6.10/include/php/ext -I/Applications/MAMP/bin/php/php5.6.10/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -fomit-frame-pointer -fvisibility=hidden -c /Users/mah/Downloads/cphalcon-master/build/64bits/phalcon.zep.c -o phalcon.lo mkdir .libs gcc -I. -I/Users/mah/Downloads/cphalcon-master/build/64bits -DPHP_ATOM_INC -I/Users/mah/Downloads/cphalcon-master/build/64bits/include -I/Users/mah/Downloads/cphalcon-master/build/64bits/main -I/Users/mah/Downloads/cphalcon-master/build/64bits -I/Applications/MAMP/bin/php/php5.6.10/include/php -I/Applications/MAMP/bin/php/php5.6.10/include/php/main -I/Applications/MAMP/bin/php/php5.6.10/include/php/TSRM -I/Applications/MAMP/bin/php/php5.6.10/include/php/Zend -I/Applications/MAMP/bin/php/php5.6.10/include/php/ext -I/Applications/MAMP/bin/php/php5.6.10/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -march=native -mtune=native -O2 -fomit-frame-pointer -fvisibility=hidden -c /Users/mah/Downloads/cphalcon-master/build/64bits/phalcon.zep.c -fno-common -DPIC -o .libs/phalcon.o In file included from /Users/mah/Downloads/cphalcon-master/build/64bits/phalcon.zep.c:169: In file included from /Applications/MAMP/bin/php/php5.6.10/include/php/main/php.h:35: /Applications/MAMP/bin/php/php5.6.10/include/php/Zend/zend.h:51:11: fatal error: 'zend_config.h' file not found

include <zend_config.h>

1 error generated. make: *** [phalcon.lo] Error 1

Please help me fix this