Who have compiled the PHP successfully with uClibc?
Sep 24, 2003 1 Replies
J
Jason
Dear all,
Recently, I am working with emdded linux in a mips platform. And the system is compiled with uClibc, now I wanna my thttp server support PHP, can parse the PHP scripts. When I compiled PHP, there are some errors, I am trying to crack them now.
Who have compile the PHP successfully with uClibc? Would you like to let me know your steps?
Thanks in advance..
Jason --
Didn't find your answer? Ask the community — no account required.
J
Joerg Schmitz-Linneweber
It depends on your version of uClibc and the web-server.
But, yes, I compiled it (for x86) under uClibc 0.9.19 and to be used with busybox' (0.61.pre?) httpd with the following snippet:
--- snip ---------------------- #!/bin/sh # #
if [ "x$UCLIBC_ROOT" == "x" -o "x$UCLIBC_USR" == "x" ]; then echo "Please set UCLIBC_* before configuring" exit 1 fi
for f in config.cache config.h config.log config.status; do if [ -e $f ]; then rm $f fi done
--- snap ---------------------- As you can see, you need to get your path'es right and then PHP (4.3.1) works fine... BTW. I compiled uClibs w/o LARGEFILE!