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

Compile Phalcon for different php directory

Hello!

I tried compiling and installing phalcon from GitHub. I use a Mac with Mountain Lion and the Application MAMP. So my PHP Folder is not the default PHP Folder. So the phalcon.so is compiled and copied to the wrong directory.

I moved it to the correct directory, but now I got the error:

[25-May-2013 00:02:06 Europe/Berlin] PHP Warning: PHP Startup: phalcon: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20100525 These options need to match in Unknown on line 0

Can someone give me a hint what I'm doing wrong?

regards, philwilba



98.9k

Hi, it seems that is very hard compile an extension for MAMP, check this: https://forum.phalcon.io/discussion/235/mac-os-x-10-7-5#C959

You are awesome :) Not i'm able to load it. Thank you very much!

Hello!

Do you also have an idea what to change in the devtools? Just got the notice to install the phalcon extension.

regards, philwilba



863
Accepted
answer

Ok got it - Sorry for disturbing.

I just changed the php call in the phalcon.sh to the correct php.