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
PHP embed SAPI
Re: PHP embed SAPI
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
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
― George Orwell, 1984
Re: PHP embed SAPI
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
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