快速安装ubuntu交叉编译工具
来源:互联网 发布:linux 命令如何记忆 编辑:程序博客网 时间:2024/06/05 07:44
1,添加一个源到我们的/etc/apt/sources.list下,这样我么才可以sudo apt-get install gcc-armxxx;
源地址:deb http://www.emdebian.org/debian/ stable main
将上面的地址加到我们的/etc/apt/sources.list下;
手动将 deb http://www.emdebian.org/debian/ stable main添加到 /etc/apt/sources.list 一般用户的权限是不够的,所以需要在你的 编辑器前加上sudo的呢。
2,千万别忘了
sudo apt-get update
3.更新成功后
sudo apt-get install gcc-4.4-arm-linux-gnueabi
Ok,如果有什么问题,请跟贴联系。
4,境在执行第二步的时候,遇到这样的问题:
sudo apt-get update
W: GPG error: http://www.emdebian.org stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B5B7720097BB3B58
解决办法:
sudo apt-get install emdebian-archive-keyring
sudo apt-get update
补充:有人在sudo apt-get install gcc-4.4-arm-linux-gnueabi时,遇到了这样的问题:
@ubuntu:~$ sudo apt-get install gcc-4.3-arm-linux-gnueabi
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
gcc-4.3-arm-linux-gnueabi: Depends: gcc-4.3-arm-linux-gnueabi-base (= 4.3.5-4) but it is not going to be installed
Depends: cpp-4.3-arm-linux-gnueabi (= 4.3.5-4) but it is not going to be installed
Depends: binutils-arm-linux-gnueabi (>= 2.19.1) but it is not going to be installed
Recommends: libc6-dev-armel-cross (>= 2.5) but it is not going to be installed
libmpfr4: Depends: libgmp10 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
既然遇到了这个犯人的问题,那我们只好硬着头皮去解决了,解决办法:
@ubuntu:~$ sudo apt-get install libc6-dev-armel-cross
@ubuntu:~$ sudo apt-get install binutils-arm-linux-gnueabi
安装libmpfr4,下载地址:http://www.anheng.com.cn/debian/pool/main/m/mpfr4/libmpfr4_3.0.0-9_i386.deb
@ubuntu:~$sudo dpkg -ilibmpfr4_3.0.0-9_i386.deb
@ubuntu:~$ sudo apt-get install cpp-4.3-arm-linux-gnueabi
安装libgmp10,下载地址:http://www.anheng.com.cn/debian/pool/main/g/gmp/libgmp10_5.0.1+dfsg-7_i386.deb
@ubuntu:~$sudo dpkg -ilibgmp10_5.0.1+dfsg-7_i386.deb
@ubuntu:~$ sudo apt-get install gcc-4.3-arm-linux-gnueabi-base
@ubuntu:~$sudo apt-get install gcc-4.4-arm-linux-gnueabi
大功告成。。。。。。
- 快速安装ubuntu交叉编译工具
- ubuntu 下快速安装交叉编译工具
- ubuntu中安装交叉编译工具
- ubuntu下安装交叉编译工具链
- ubuntu环境安装交叉编译工具
- ubuntu下安装交叉编译工具链
- Ubuntu 16.04 安装ARM交叉编译工具
- 安装交叉编译工具
- 安装交叉编译工具
- 安装交叉编译工具
- 交叉编译工具安装
- 安装交叉编译工具
- 交叉编译工具安装
- 交叉编译工具安装
- 安装交叉编译工具
- 安装交叉编译工具
- 安装交叉编译工具
- Ubuntu 9.04安装arm-linux-gcc交叉编译工具
- ipod touch升级 破解 软件安装!100%成功!
- 构建基于 Sencha Touch 框架的 Mobile web 应用
- 12012012 加码YTLP
- POJ 1384 完全背包
- ubuntu11.10制作交叉编译工具
- 快速安装ubuntu交叉编译工具
- DRP项目总结(一)——项目简介
- Zend-Optimizer & eAccelerator 共存設定問題
- io端口与io内存
- NFC简介
- 小谈C语言中常见数据类型在32及64位机上的使用
- 简析HTTP协议(一)
- 在windows下安装scrapy的方法详解
- Linux控制台显示大小控制参数vga