在make 或make install时,会出现以下报错:
 
make[3]: ***[strings/apr_fnmatch.lo] Error 1
make[3]: Leaving directory `/root/software/httpd-2.2.14/srclib/apr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/software/httpd-2.2.14/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/software/httpd-2.2.14/srclib'
make: *** [all-recursive] Error 1
 
具体什么原因,待解决!
 
6月6日上午补充:
有两条主要的报错:
strings/apr_fnmatch.c:53:20: error: string.h: No such file or directory
strings/apr_fnmatch.c:101: warning: incompatible implicit declaration of built-in function
 
第一条,在/usr/include中只有strings.h,没有string.h,遂做了一个软连接:
ln -s strings.h string.h
 
第一个报错解决。
 
第二个:网上查找的解决方法是,在要编译的.c文件中加入#include 头文件
因为memcpy() 和strlen()函数在string.h库中
所以在nginx.c中加入了#include
 
结果还报错。
慢慢找找原因。反正不能由着性子一下子给重装了。
这要出现在生产环境中,非坏事不可。