LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 667|回复: 6

在安装binutils时,make出错,请各位高人指点

[复制链接]
发表于 2004-6-6 03:02:37 | 显示全部楼层 |阅读模式
在安装binutils时,make出错,提示信息如下:
calhost binutils-build]$ make LDFLAGS=-all-static
Configuring in intl
loading cache .././config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -s -E
checking whether make sets ${MAKE}... yes
checking for gcc... gcc -s
checking whether the C compiler (gcc -s -g -O2 -all-static) works... no
configure: error: installation or configuration problem: C compiler cannot cr
eate executables.
make: *** [configure-intl] Error 1
发表于 2004-6-7 00:22:01 | 显示全部楼层
checking whether the C compiler (gcc -s -g -O2 -all-static) works... no

是编译器有问题吧
 楼主| 发表于 2004-6-7 00:54:15 | 显示全部楼层
请问有何解决方法?本人用的主系统是redhat9.0
发表于 2004-6-7 09:07:53 | 显示全部楼层
不是编译器的问题,是因为目录的读写权限出错。
用root用户做:chown -R lfs:lfs binutils-2.***
发表于 2004-6-7 09:39:15 | 显示全部楼层
是不是没gcc?。。
发表于 2004-6-7 15:13:53 | 显示全部楼层
configure: error: installation or configuration problem: C compiler cannot cr
eate executables.
make: *** [configure-intl] Error 1

从这一句话上面可以看出应该不是没有gcc的原因。如果没有gcc的话。提示应该是不一样的。
 楼主| 发表于 2004-6-9 01:18:39 | 显示全部楼层
用小丑奇兵方法通过了,谢谢大家!现在已经搞到gcc了,以后还请大侠们多多指教
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表