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

Phalcon C compiler error

After install Phalcon and add the extension file i navigate to:

/cphalcon/build/64bits#

after that i do:

./configure --enable-phalcon

and i got this error:

checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... no configure: error: in /cphalcon/build/64bits': configure: error: C compiler cannot create executables Seeconfig.log' for more details

Its Debian 8.2 x64, php5.6, nginx

What i am doing wrong ?

Check the config.log located at cphalcon/build/64bits



79.0k
Accepted
answer

Why do you run ./configure after installation? You can link manually phalcon.so to your *.ini include path.



1.5k

Ops sorry my fault. I check php -m and didnt see phalcon module instaled, but when i do php5-fpm -m is there. If i check it with phpinfo() is okay . Sry about silly post

In order to use Phalcon from CLI, you need to symlink to the main phalcon.ini, i.e. /etc/php5/cli/conf.d/ with contents:

20-phalcon.ini -> ../mods-available/phalcon.ini