ubuntu中安裝petalinux提示ERROR: Failed to install Yocto SDK for aarch64的處理方式之一

問題如下:

。。。。

INFO: Installing PetaLinux...
*********************************************
WARNING: PetaLinux installation directory: /opt/pkg/petalinux/. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/."
INFO: Installing aarch64 Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/aarch64"...
*********************************************
ERROR: Failed to install Yocto SDK for aarch64.
*********************************************

Please refer to the PetaLinux Tools Installation Guide.

Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
   /home/***/Tools/work/petalinux_installation_log
 

原因之一:

拋開其它博文中普遍提到的:

可參考:https://blog.csdn.net/mcupro/article/details/91973744

1. 需先安裝相關庫;

2. 切換到bash;

3. 不要使用root模式安裝;

等等。

 

我碰到的一個情況是:系統中還未安裝python,並且需要是v2.xx版本。

其實這點,可以從安裝fail時的log文件/home/***/Tools/work/petalinux_installation_log

中看到提示(早沒想到直接去看看,折騰半天時間。。。)

sudo  apt install python

之後重新安裝petalinux,注意最好吧原目錄中的log文件刪掉,最終,成功

。。

INFO: PetaLinux SDK has been installed to /opt/pkg/petalinux/.
 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章