博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
安装httpd-2.2.15.tat.gz碰到的编译问题
阅读量:7297 次
发布时间:2019-06-30

本文共 1721 字,大约阅读时间需要 5 分钟。

安装httpd-2.2.15.tat.gz

cd httpd-2.2.15

./configure --prefix=/usr/local/apache --enable-module=so && make && make install

 

报错如下:

checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.3.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 ISO C89... none needed
Applying APR hints file rules for i686-pc-linux-gnu
  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: in `/localdisk/apache_php_mysql/httpd-2.2.13/srclib/apr':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure failed for srclib/apr

问题是C编译器问题 ,解决方法: yum install gcc

本文转自 holy2009 51CTO博客,原文链接:http://blog.51cto.com/holy2010/424246

转载地址:http://kamjm.baihongyu.com/

你可能感兴趣的文章
sass--变量
查看>>
mysql查询结果添加编号
查看>>
PIE SDK矢量数据编辑事件的监听
查看>>
用python生成用户账号
查看>>
冲刺周期会议七
查看>>
$.post和jquerySubmit返回json数据获取的区别
查看>>
请求方法
查看>>
数据库基本知识(多表查询基本语法)
查看>>
Android开发者指南(23) —— Application Resources
查看>>
libevent(五)使用例子
查看>>
Python爬虫(一)爬百度贴吧
查看>>
QT学习之QString
查看>>
javascript 面向对象编程(一):封装
查看>>
vim常用指令及快捷键(持续更新)
查看>>
php hash函数
查看>>
链表的基本操作
查看>>
统计日志10分钟内出现的次数
查看>>
python开发函数进阶:内置函数
查看>>
sssssss
查看>>
责任链模式实例:扣除用户金币/写入金币明细/发送消息
查看>>