We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

The steps to install phalcon on MAC OS.

Hi,guys, I really don't know how to intall phalcon on mac os. yosomite Xcode6-beta2 php5

according to official documents,I falt at step 1.

1. To create the extension from C source follow these steps:

git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
2. Add the extension to your php.ini:

3. Finally, restart the webserver

When runing at step1 got a message as below:

trumandeMac:build truman$ sudo ./install
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:        
Zend Module Api No:     
Zend Extension Api No:  
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

and don't know when and where to type those code:

sudo brew install php53-phalcon
sudo brew install php54-phalcon
sudo brew install php55-phalcon

sudo port install php53-phalcon
sudo port install php54-phalcon
sudo port install php55-phalcon

  • The port command is provided by MacPorts
  • Brew command is provided by brew