We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Problem installing on Maverick with HomeBrew

Hi there,

I've just installed Phalcon for PHP 5.4 on my Mavericks MacBook Pro using Homebrew. Contrary to what the documents said:

sudo brew install php54-phalcon

I didn't use "sudo" because when I did, HomeBrew refused to do its thing! :)

Everything seemed to install OK but when I run PHP -i from the command line, Phalcon isn't loading.

Any ideas?

Thanks.



98.9k

Did you add extension=phalcon.so to the php.ini?



382
Accepted
answer

Did you run 'brew link php54' before?

It could be that the php that you were call for the command line is the one that came with Mavericks and not the one compiled by Homebrew.



38.8k

Hey Guys, thanks for your advice!

@Mellisa P - you were absolutely right. I had no idea that HomeBrew had/would install PHP and I only installed HomeBrew to install Phalcon. I thought that it would just work against the Mavericks PHP installation. So, I've created a symlink pointing the Mavericks PHP to the HomeBrew PHP, and when I ran "php -i" on the command line, sure enough, Phalcon is listed as an installed extension! :)

Really excited about Phalcon so was keen to resolve this small issue. Thank you both once again :D