Chinaunix首页 | 论坛 | 博客
  • 博客访问: 837251
  • 博文数量: 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-22 22:20:13

        目的:解决问题

点击(此处)折叠或打开

  1. configure:2396: $? = 1
  2.     configure:2415: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5
  3.     /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

        昨天问题,没有精确定位,就会对事物认识不够,问题应该是./gcc/cc1报出来的,那应该找cc1的问题。


点击(此处)折叠或打开

  1. readelf -a cc1 | grep interpreter

  2. Requesting program interpreter: /lib/ld-linux.so.2

        如果使用改链接器就,必须改变ld-linux.so.2的搜寻路径:

点击(此处)折叠或打开

  1. export LD_LIBRARY_PATH=/tools/lib

         将gcc-build目录当中的文件全部删除,再次运行configure,make,可成功编译,解决运行make install.

阅读(1806) | 评论(2) | 转发(1) |
0

上一篇:LFS第七天-gcc安装

下一篇:关于hwclock

给主人留下些什么吧!~~