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.

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 Dec '19

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



i had so many issues after updating to Catalina

most of it went away after moving my workspace away from the desktop