FavoriteLoading
0

ARM-Linux-gcc-4.4.3(centos7)安装

**1.下载文件:**
ARM-Linux-gcc-4.4.3.tar.gz
下载地址:https://pan.baidu.com/s/1gfIoygN

**2.安装(本次选择安装位置为/usr/local)**![](http://i2.51cto.com/images/blog/201712/16/8c6b965e7c9e55eef6677e4e5d5b554c.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
*可用tab补全*
解压完成会生成一个‘opt’文件
![](http://i2.51cto.com/images/blog/201712/16/aee6eea78556a597332ad92487bc922c.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
**3.加入PATH路径**
1)查看绝对路径:
![](http://i2.51cto.com/images/blog/201712/16/3f8fb0b772a1ca9219e31c0b685e4335.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
2)在/etc/profile最后加入环境变量
![](http://i2.51cto.com/images/blog/201712/16/517f2a3a6e5e897264f6d655fb52c9aa.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
`使用source /etc/profile` 重新执行刚才修改过的文件
**4.检验安装**
1)使用arm-linux-gcc -v查看版本号![](http://i2.51cto.com/images/blog/201712/16/9067a0c1ca414517dffa29218af15138.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
!!!安装成功
2)报错,未找到文件
![](http://i2.51cto.com/images/blog/201712/16/ad7382f0991dec91ea18a337754584d2.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
首先想到是缺少32位库的支持,所以安装库
![](http://i2.51cto.com/images/blog/201712/16/ffbfe0c332c73e806f4c70c0cde80eb6.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
额。。。既然有提示就按照提示来
3)安装`yum install –setopt=protected_multilib=false xulrunner.i686
![](http://i2.51cto.com/images/blog/201712/16/fc2d25ac2792db518730066c7a75cf64.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
啧。。。贼大,我记得第一次安装报错的时候只安装了很小的一个支持,有心的可以去找一下,这次就按照提示来
**4)安装完成后再查看版本号**
![](http://i2.51cto.com/images/blog/201712/16/fc79a756365263dfbe00b6b965d131fd.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
**over!!**
转载随意