Re: HELP Getting error when compiling PHP
| From: | Yasuo Ohgaki | Date: | Mon, 30 Jul 2001 08:38:58 +0000 |
| Subject: | Re: HELP Getting error when compiling PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60170@lists.php.net to get a copy of this message | ||
"Richard Kurth" <rkurth@pacifier.com> wrote in message
news:25104272679.20010729172701@pacifier.com...
> I am compiling php as a cgi but I get this error when I run make
> It says it cant find the file errno.h but the file is in the
> directory it is looking in. What can I do to fix this.
>
>
> [root php-4.0.6]# make
> Making all in Zend
> make[1]: Entering directory `/home/tmp/php-4.0.6/Zend'
> /bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -
O2 -c zend_language_scanner.c
> In file included from /usr/include/errno.h:36,
> from zend_language_scanner.c:2718:
> /usr/include/bits/errno.h:25: linux/errno.h: No such file or directory
> make[1]: *** [zend_language_scanner.lo] Error 1
> make[1]: Leaving directory `/home/tmp/php-4.0.6/Zend'
> make: *** [all-recursive] Error 1
>
I'm sure you don't have kernel header.
Install kernel header in your system and make a correct link for it.
RPM will do the job if you are using RedHat or like.
Regards,
--
Yasuo Ohgaki