LinuxSir.cn,穿越时空的Linuxsir!

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

Binutils-2.16.1 - 第一遍 顺利 通过,安装GCC 出现configure: error: installation

[复制链接]
发表于 2007-7-8 14:41:38 | 显示全部楼层 |阅读模式
mkdir -v ../binutils-build
cd ../binutils-build
../binutils-2.16.1/configure --prefix=/tools --disable-nls
make
make -C ld clean
make -C ld LIB_PATH=/tools/lib
都正常
cp -v ld/ld-new /tools/bin
说ld/ld-new 没有这个文件
然后继续编译 安装 GCC
mkdir -v ../gcc-build
cd ../gcc-build
../gcc-4.0.3/configure --prefix=/tools \
    --with-local-prefix=/tools --disable-nls --enable-shared \
    --enable-languages=c
出现:
lfs:/mnt/lfs/sources/gcc-build$ ../gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-language=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.
请问这是怎么回事?
发表于 2007-7-9 19:40:36 | 显示全部楼层
好像 binutils 也没有成功安装好

Host 是什麽系统?
回复 支持 反对

使用道具 举报

发表于 2007-7-10 10:11:02 | 显示全部楼层
Fedora Core 7
可能太新了,在某些方面有问题,还是没装什么?
回复 支持 反对

使用道具 举报

发表于 2007-7-10 12:27:13 | 显示全部楼层
记得从电邮列表看过用 Fedora 系统当 host 出问题机会较大的,但问题已在 SVN 版里修正了

如楼主对 LFS 或编译系统有经验,可考虑做 SVN 版,否则换一个 host 再来也行
回复 支持 反对

使用道具 举报

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

本版积分规则

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