新手遇到的奇怪问题
时间:2008-10-29
来源:互联网
lfs:/mnt/lfs/sources/gcc-4.0.3$ cd gcc-build/
lfs:/mnt/lfs/sources/gcc-4.0.3/gcc-build$ /mnt/lfs/sources/gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
creating 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.
最后又发现个奇怪的现象,我重新回去配置binutils竟然出现了跟配置gcc一样的错误,真是糊涂了,还请大虾们指点啊。。。
lfs:/mnt/lfs/sources/gcc-4.0.3$ cd /mnt/lfs/sources/binutils-2.16.1/binutils-build
lfs:/mnt/lfs/sources/binutils-2.16.1/binutils-build$ /mnt/lfs/sources/binutils-2.16.1/configure --prefix=/tools --disable-nls
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... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
作者: chenda0.03 发布时间: 2008-10-29
----编译环境没有就绪
后来发现ubuntu默认也没有装libc6-dev
我知道的是ubuntu可以apt-get搞定
我想你的FC9应该也可以yum得到吧
期待楼下 给出具体指令
作者: ppluer 发布时间: 2008-10-29
网上只能下到libc6-dev.xxx.deb,那个东西fedora装不了,有个alien的好像是,可以转换成rpm格式,免安装的还挺开心,可是一用就出问题,我哭了,而且据说那个转出来的会有问题。
作者: chenda0.03 发布时间: 2008-10-29
我之前听说,用高版本的GCC编译底版本的比如4.XX编译3.XX的时候可能出错的。
不知道是不是这个原因。呼。
作者: benbenr 发布时间: 2008-10-29
我现在还处于第一次编译binutils,还没有安装glibc,可是PATH却指向了/tools/bin,它底下的ld是连接到/tools/lib的,这时候的lib还所空的,所以会出现这样到问题。
我把/tools/bin从PATH中去掉了,gcc已配置成功,后面应该不会有什么问题吧。
作者: chenda0.03 发布时间: 2008-10-29
作者: chenda0.03
我yum过了,还添了几个源,libc6-dev是完全不行,后来yum了glibc,安装的时候出错了。。。
网上只能下到libc6-dev.xxx.deb,那个东西fedora装不了,有个alien的好像是,可以转换成rpm格式,免安装的还挺开心,可是一用就出问题,我哭了,而且据说那个转出来的会有问题。 |
作者: d00m3d 发布时间: 2008-10-30
作者: chenda0.03 发布时间: 2008-10-30
作者: d00m3d 发布时间: 2008-10-30
今天解决了不少问题,昨天那股怨气一下子全没了,发现久违了windows,切换之,
随后改QQ签名:linux下的挫折和成长,让我痛苦若狂,欣喜更狂!
作者: chenda0.03 发布时间: 2008-10-30
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28