超简单的一个问题

TangKai_java 2010-08-06 09:49:13
Linux下安装pache2.2.4时出现如下错误,怎么解决?
[root@localhost httpd-2.2.4]# ./configure -prefix=/usr/local/web/apche
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
Configuring APR library
Platform: i686-pc-linux-gnulibc1
checking for working mkdir -p... yes
APR Version: 1.2.8
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying APR hints file rules for i686-pc-linux-gnulibc1
setting CPPFLAGS to "-DLINUX=2"
adding "-D_REENTRANT" to CPPFLAGS
adding "-D_GNU_SOURCE" to CPPFLAGS
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure failed for srclib/apr
[root@localhost httpd-2.2.4]# make
make: *** No targets specified and no makefile found. Stop.

[root@localhost httpd-2.2.4]#
...全文
175 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
最帅马老师 2010-08-06
  • 打赏
  • 举报
回复
TangKai_java 2010-08-06
  • 打赏
  • 举报
回复
我已经解决了,谢谢两位!搞了我两天,烦死了!
freefei 2010-08-06
  • 打赏
  • 举报
回复
就是呀,别总是发一样的,依赖库问题!!

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧