PHP embed SAPI

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
baran
Posts: 74
Joined: 8. Feb 2010, 17:41

PHP embed SAPI

Post 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
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: PHP embed SAPI

Post by JRD »

Sorry dunno.
I didn't knwo phc...I will take a look in few days.
Image
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: PHP embed SAPI

Post 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
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
baran
Posts: 74
Joined: 8. Feb 2010, 17:41

Re: PHP embed SAPI

Post 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
Post Reply