Chinaunix首页 | 论坛 | 博客
  • 博客访问: 838665
  • 博文数量: 90
  • 博客积分: 766
  • 博客等级: 军士长
  • 技术积分: 1867
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-18 08:42
个人简介

linux

文章分类

全部博文(90)

文章存档

2021年(2)

2020年(2)

2017年(1)

2015年(11)

2014年(1)

2013年(53)

2012年(16)

2011年(4)

分类: 系统运维

2013-03-19 22:55:33

        目的:安装gcc


点击(此处)折叠或打开

  1. #安装gomp mpfr m4等软件,同样安装在/tools目录下

        安装好之后,发现/tools/lib下会有相关库。


点击(此处)折叠或打开

  1. mkdir -v ../gcc-build
  2. cd ../gcc-build
  3. ../gcc-4.4.3/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c --with-gmp=/tools --with-mpfr=/tools

 出现错误:

点击(此处)折叠或打开

  1. checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
  2. configure: error: cannot compute suffix of object files: cannot compile
  3. See `config.log' for more details.

找到相应的config.log:

点击(此处)折叠或打开

  1. /mnt/lfs/sources/gcc-build/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

          libmpfr.so.1很明显是mpfr的库,刚已经安装过了,可是这里为什么找不到啦?为configure加上--with-lib-mpfr和--with-lib-gmp.

点击(此处)折叠或打开

  1. rm -rf *
  2. ../gcc-4.4.3/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c --with-gmp=/tools --with-mpfr=/tools --with-lib-gmp=/tools/lib --with-lib-mpfr=/tools/lib

还是同样的错误:


点击(此处)折叠或打开

  1. /mnt/lfs/sources/gcc-build/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

              那么是什么问题拉?
阅读(4373) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~