Installation
- install php5-dev
sudo apt-get install php5-dev
- install PCRE libraries
sudo apt-get install libpcre3-dev
- clone cphalcon
git clone git://github.com/phalcon/cphalcon.git
- build cphalcon
cd cphalcon/build
sudo ./install
- Create the extension ini file in /etc/php5/mods-available
echo 'extension=phalcon.so' | sudo tee -a /etc/php5/mods-available/phalcon.ini
cd /etc/php5/mods-available
sudo php5enmod phalcon
- restart apache2
sudo /etc/init.d/apache2 restart
referrence: https://www.digitalocean.com/community/tutorials/how-to-install-and-get-started-with-phalcon-on-an-ubuntu-12-04-vps http://askubuntu.com/questions/440825/cant-install-phalcon-extention-on-ubuntu http://stackoverflow.com/questions/22555561/error-building-fatal-error-pcre-h-no-such-file-or-directory