RedHat linux 5 安装 apache 时遇到 gcc 未安装

博主分享了在Linux环境下安装Apache时遇到的问题及解决过程。由于gcc编译器未安装导致配置失败,通过逐步解决问题,表达了从.NET转向Java EE再到PHP的心路历程。

前两个月突然脑残的脱离.net去做javaEE,这两天又被朋友忽悠到PHP平台上了,临门抱佛脚,在linux上安装PHP平台.

结果信心满满的我遭到当头棒喝:

安装apache命令


./configure --prefix=/usr/apache/httpd --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.2.8
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

==============================

gcc编译器未安装

可能是我安装redhat 的时候配置不对吧,赶快找到当时的安装盘,找到rpm所在的Server目录

安装gcc,我晕啊,gcc的依赖项太多了,太深了,只能逐个安装

真是一层套一层啊,有完没完啊.

还是windows好啊,鼠标点点就一切ok了,linux对于那些非专业人士来说需求太苛刻了

好了,高呼下我的口号吧:我2我骄傲,我2我自豪.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值