LinuxSir.cn,穿越时空的Linuxsir!

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

在真实机上进行LFS,出现了这样的提示:C compiler cannot create executables.

[复制链接]
发表于 2006-12-20 22:29:10 | 显示全部楼层 |阅读模式
lfs:/mnt/lfs/sources/gcc-build$ ../gcc-4.0.3/configure --prefix=/tools --libexecdir=/tools/lib \
>          --with-local-prefix=/tools --disable-nls \
>          --enable-shared --enable-languages=c

loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

请问这是怎么回事?前面一切正常。我的宿主系统是FC6。
发表于 2006-12-20 23:26:19 | 显示全部楼层
主系统的开发环境能满足否?

FC6 跟 Debian 差不多一样麻烦,开发库是另行封装的,要加装它们才行!
回复 支持 反对

使用道具 举报

发表于 2006-12-21 10:15:17 | 显示全部楼层
Post by d00m3d
主系统的开发环境能满足否?

FC6 跟 Debian 差不多一样麻烦,开发库是另行封装的,要加装它们才行!
“要加装它们”是什么意思?是指还要再装什么东西么?打补丁?
d00m老大能否解释清楚?

BTW:我的系统也是FC6的,一开始也是有很多的问题,后来把VM下做好的tools拿到FC6下来做后面的才做完的-_-
回复 支持 反对

使用道具 举报

发表于 2006-12-21 23:07:24 | 显示全部楼层
指那些 xxx-dev 或 xxx-devel 之类的"开发包"也要装上才行
回复 支持 反对

使用道具 举报

发表于 2006-12-22 11:56:38 | 显示全部楼层
哦。。。。我的FC6所有devel包都装上的,还是会出问题(就是make第一个binuntil的ld的时候),估计还是FC6这系统。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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