歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu上arm-linux-gcc交叉環境搭建問題解決

Ubuntu上arm-linux-gcc交叉環境搭建問題解決

日期:2017/2/28 16:21:17   编辑:Linux教程

How to install:

cd /usr/local

mkdir arm

cd arm

tar Ixvf cross-<version>.tar.bz2

Add /usr/local/arm/<version>/bin to your path to use the cross compiler.

1,出現找不到stdio.h,證明解壓縮後的包放置路徑有問題;

2,出現cannot found lgcc_s 時候說明gcc的版本和arm-linux-gcc版本沖突;

3,出現沒有權限什麼的,用chmod 777 arm-linux-gcc解決;

4,出現找不到“cc1”什麼的,說明解壓縮方式有問題!我最後用命令行的tar -zxvf解壓就正常了,之前可能在windows上解壓,或者是用右鍵吧,我記不清了,最後命令行解壓以後,所有命令都自動是777的權限,而之前解壓的方式全都不是777。

Copyright © Linux教程網 All Rights Reserved