当前位置: 技术问答>linux和unix
求助:安装编译Apache程序时出现怪问题?CentOS
来源: 互联网 发布时间:2016-08-16
本文导语: 求助:安装编译Apache程序时出现怪问题? [CentOS] 说明:原来老的Apache程序是通过下面命令删除: service httpd stop yum -y remove httpd rpm -qa httpd ...
求助:安装编译Apache程序时出现怪问题? [CentOS]
说明:原来老的Apache程序是通过下面命令删除:
service httpd stop
yum -y remove httpd
rpm -qa httpd
然后下载程序回来安装,在配置时又提示GCC未安装,
因此又接着装了GCC-rpm的包。但又提示其他错误。晕倒!
关键是下面两条错误:
configure: error: in `/home/httpd-2.2.15/srclib/apr':
configure: error: C compiler cannot create executables
不知啥子意思啊?
执行命令如下:
[root@localhost home]# cd httpd-2.2.15
[root@localhost httpd-2.2.15]# ./configure --prefix=/usr/local/apache2 --enable-module=so
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.4.2
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/home/httpd-2.2.15/srclib/apr':
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr
|
默非是gcc套件没装完整?
yum -y install glibc-devel
yum -y install glibc-devel
|
问题不少,主要是缺少相应的库。除了主席大哥说的以外,还有configure failed for srclib/apr
|
See `config.log' for more details.
|
这样强制安装是不行的哟
按我说的来试试
1.用rpm把你强制安装的gcc包全部卸掉
2.yum -y install gcc gcc-c++ libstdc++-devel
按我说的来试试
1.用rpm把你强制安装的gcc包全部卸掉
2.yum -y install gcc gcc-c++ libstdc++-devel
|
遇到依赖包的问题 你最好是缺什么再下什么 把依赖全部解决了 而且版本也应该按提示来 不能随便下个版本就开始装 否则强制安装后使用肯定会出问题的 gcc是非常重要的 即便你现在好用了 以后安装别的软件肯定也会出问题