LinuxSir.cn,穿越时空的Linuxsir!

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

刚开始学习lfs:第5章中configure出了问题,不明白(注.已解决.低级错误,引以为戒)

[复制链接]
发表于 2006-7-27 15:03:15 | 显示全部楼层 |阅读模式
输入../binutils-2.15.94.0.2.2/configure --prefix=/tools --disable-nls
只得到了如下的输出:
creating cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking build system type... i686-pc-linux-gnulibc1
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.
但是我得gcc版本是:
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

下面是export的输出内容
declare -x HOME="/home/lfs"
declare -x LC_ALL="OSIX"
declare -x LFS="/mnt/lfs"
declare -x OLDPWD="/mnt/lfs/sources"
declare -x PATH="/tools/bin:/bin:/usr/bin"
declare -x PS1="\${debian_chroot:+(\$debian_chroot)}\\u@\\h:\\w\\\$ "
declare -x PWD="/mnt/lfs/sources/binutils-build"
declare -x SHLVL="1"
declare -x TERM="xterm"

我找不到原因,现在无法继续下去.希望高手给予指导
谢谢
 楼主| 发表于 2006-7-27 15:51:51 | 显示全部楼层

谢谢大家,我找到原因了

由于我装gcc时没有安装libc6-dev
把它装上问题就没了
回复 支持 反对

使用道具 举报

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

本版积分规则

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