Page 1 of 1

PHP embed SAPI

Posted: 25. Aug 2011, 10:32
by baran
Hi,

I am using SalixOS 32bit XFCE. I did install php from repo. Now I would like to install phc compiler, and it writes me:

Error: phc requires PHP to be avaiable for compilation. Please install the PHP embed SAPI, and run 'configure' on phc again

Can I set it in any ini file or I must recompile php from source? Thank you for all help.


Rene

Re: PHP embed SAPI

Posted: 25. Aug 2011, 22:31
by JRD
Sorry dunno.
I didn't knwo phc...I will take a look in few days.

Re: PHP embed SAPI

Posted: 25. Aug 2011, 22:53
by laprjns
Looks to me like php has to be recompiled with the --enable-embed option. See http://www.phpcompiler.org/doc/phc-0.2.0.3/install.html

Re: PHP embed SAPI

Posted: 26. Aug 2011, 05:40
by baran
Hi,

thank you. I did download php 5.2.17 and made reinstall

I did run command ./configure and after command make writes me in the end ERROR

COMMAND 1: CFLAGS="-O3" ./configure --enable-bcmath --with-gmp --with-mysql --enable-embed
COMMAND 2: make

/home/baran/Downloads/php-5.2.17/ext/gmp/gmp.c: In function ‘zif_gmp_random’:
/home/baran/Downloads/php-5.2.17/ext/gmp/gmp.c:1399: error: ‘__GMP_BITS_PER_MP_LIMB’ undeclared (first use in this function)
/home/baran/Downloads/php-5.2.17/ext/gmp/gmp.c:1399: error: (Each undeclared identifier is reported only once
/home/baran/Downloads/php-5.2.17/ext/gmp/gmp.c:1399: error: for each function it appears in.)
make: *** [ext/gmp/gmp.lo] Error 1

:-(

Rene