LinuxSir.cn,穿越时空的Linuxsir!

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

在编译LFS5.0章.5的第一遍gcc出现如下提示:

[复制链接]
发表于 2005-8-7 22:18:55 | 显示全部楼层 |阅读模式
lfs@debian:/mnt/lfs/sources/gcc-build$ ../gcc-3.3.1/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /mnt/lfs/sources/gcc-build using "mt-frag"
/tools/bin/ld: unrecognized option '--as-needed'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

请问是什么问题?怎么解决?谢谢!
发表于 2005-8-17 13:07:28 | 显示全部楼层

我也碰到了同样的问题

哪位高手可以指点一下
回复 支持 反对

使用道具 举报

发表于 2005-8-17 13:11:54 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2005-8-18 07:40:44 | 显示全部楼层
我是在debian上裝的,也出現了這個情況,
apt-get install  gcc-2.95
ln -fs gcc /usr/bin/gcc-2.95
這樣就可以編譯成功了,

繼續編譯lfs去,祝福我吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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