安装binutils 2.23.2
来源:互联网 发布:淘宝店怎么设置佣金 编辑:程序博客网 时间:2024/06/06 12:47
在编译openwrt系统的过程中,出现了@相关的一些问题,例如bfd.info出现问题,或者makeinfo出现问题,通过google定位到binutils软件安装版本太高,来安装最常见的binutils 2.23.2,源码下载完成,tar zxvf命令直接搞出来放在了opt/arm/build-tools中。
源码下载: ftp://ftp.gnu.org/gnu/binutils/
放置目录:http://www.360doc.com/content/10/1214/22/4525948_78191458.shtml
安装参考网页:http://www.linuxfromscratch.org/lfs/view/7.4/chapter06/binutils.html
首先安装:except
执行expect -c "spawn ls"
看到输出结果:
spawn ls
接着执行
rm -fv etc/standards.info
sed -i.bak '/^INFO/s/standards.info //' etc/Makefile.in
下面语句修复了一些texinfo中的问题
sed -i -e 's/@colophon/@@colophon/' -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo
但是在面执行的过程中我们仍然遭遇了问题
继续执行下列语句
配置:
../binutils-2.23.2/configure --prefix=/usr --enable-shared
编译一定要加上后面的语句
make tooldir=/usr
安装过程中
问题1:
configure: error: no acceptable C compiler found in $PATH
这是因为没有安装gcc编译器的缘故,apt-get install gcc即可
按照所给安装过程中仍然出现了
问题2
unknown command ‘cygnus’,make[3] ***[bfd.info] Error 1
参考网站:http://trac.cross-lfs.org/ticket/926,执行以下语句:
sed -i -e 's/@colophon/@@colophon/' -e 's/doc@cygnus.com/doc@@cygnus.com/' bfd/doc/bfd.texinfo
然后继续make /tooldir=/usr
顺利编译通过
执行最后几句语句:
make check
make tooldir=/usr install
cp -v ../binutils-2.23.2/include/libiberty.h /usr/include
完成安装,使用语句
ld -v
查看安装版本,可以看见版本为2.23.2,放心继续编译openwrt。
- 安装binutils 2.23.2
- Binutils-2.23.2
- binutils安装步骤
- Glibc Binutils GCC 安装指南
- Glibc Binutils GCC 安装指南
- binutils工具集2
- binutils
- binutils
- binutils
- binutils
- Documentation for binutils 2.23.1
- 【zz】Glibc Binutils GCC 安装指南
- GCC系列: Homebrew安装GCC和binutils
- GCC-4.80 binutils-2.23.2 glibc-2.17交叉编译ARM版本成功
- 打造windows下的嵌入式开发工具(2):binutils-2.18
- suse9x64 下升级binutils版本 到2.20.51.0.2
- redhat-5.6-x86_64 编译 binutils-2.24、gcc-4.9.2 备记
- ar binutils
- php 有用的header 头信息
- 模拟用户行为,post数据到网页
- Verilog 锁存器 触发器 寄存器区别
- Android dumpsys命令的使用
- JSP中文本编辑器KindEditor的使用方式——附demo
- 安装binutils 2.23.2
- session详解
- 2014.10.13面试总结
- android.view.WindowManager$BadTokenException: Unable to add window — token null is not for an applic
- js/jquery
- 怎样成为高级的学习者?3:操练
- Linq表达式树解析1
- android中怎么将桌面较长的图标名称显示完整
- 主宰全球的10大算法