免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1198 | 回复: 3
打印 上一主题 下一主题

用源码安装GCC后,要做哪些设置,现在用GCC编译不了APACHE [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-03-30 20:41 |只看该作者 |倒序浏览
用源码编译GCC完成后,如何设置,比如LIB库要不要做连接或设路径,我现在只做了bin下的几个文件到到/usr/bin目录下(gcc g++ gcj)
现在用GCC编译APACHE 时出现如下错误:
[root@www httpd-2.0.53]# ./configure --prefix=/opt/apache
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: 0.9.6
checking for chosen layout... apr
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure failed for srclib/apr

[/img]

论坛徽章:
0
2 [报告]
发表于 2005-03-30 20:48 |只看该作者

用源码安装GCC后,要做哪些设置,现在用GCC编译不了APACHE

你先看看你的config.log看提示什么信息

论坛徽章:
0
3 [报告]
发表于 2005-03-30 21:10 |只看该作者

用源码安装GCC后,要做哪些设置,现在用GCC编译不了APACHE

里面也没什么错误,最后一行 自动退出了,
rel_sysconfdir='conf'
rotatelogs_LTFLAGS=''
runtimedir='${localstatedir}/logs'
sbindir='${exec_prefix}/bin'
shared_build=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/conf'
target='i686-pc-linux-gnulibc1'
target_alias=''
target_cpu='i686'
target_os='linux-gnulibc1'
target_vendor='pc'

configure: exit 1

论坛徽章:
0
4 [报告]
发表于 2005-03-31 08:32 |只看该作者

用源码安装GCC后,要做哪些设置,现在用GCC编译不了APACHE

自己顶一把!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP