Bounty available!

It has been a while and this question still does not have any answers. Answer this question and get additional +177 points of karma/reputation if the original poster accepts your reply as correct answer

How do you compile phalcon on macOS Catalina


just updated to macOS Catalina, as expected it breaks my dev env again, but this time Apple makes it even more complex as I am not able to compile phalcon with build-in php. I'd like to know if any one of you're experiencing this and how do you resolve it. I am not a brew or macport fun and just try to stick to build-in php.


edited 8d ago

I've figured it out from install script, but instead of running ./install shell, you can install manually, if anyone needs it.

Get SDK path

[email protected] # xcrun --show-sdk-path

it shoud be something like


cp /usr/bin/phpize /usr/local/bin/phpize 
cp /usr/bin/php-config  /usr/local/bin/php-config

Replace includedir with SDK path

vi /usr/local/bin/phpize 


same thing for php-config

vi /usr/local/bin/php-config 

Replace include_dir with SDK path


Then compile phalcon manually

cd /Users/macbookpro/Downloads/
tar -zxf cphalcon-3.4.5.tar.gz
cd /Users/macbookpro/Downloads/cphalcon-3.4.5/build/php7/64bits/

run following

./configure --with-php-config=/usr/local/bin/php-config --enable-phalcon
sudo mkdir -p /usr/local/php/extensions
cp /Users/macbookpro/Downloads/cphalcon-3.4.5/build/php7/64bits/modules/ /usr/local/php/extensions/

Vi /etc/php.ini, add