2017-06-04 651 views
0

您好我已經在虛擬盒子中安裝了ubuntu,我將petalinux2017.1下載到了下載目錄中,並將運行文件移動到了一個名爲PetaLinux的目錄中,並位於我的根目錄中。如何在ubuntu中的/ opt目錄下運行並安裝文件?

但我無法運行文件,當我的命令是以下列方式,它顯示錯誤「找不到命令」。

[email protected]: /opt/PetaLinux$petalinux-v2017.1-finalinstaller.run 

我嘗試過同樣使用sudo和錯誤是相同的,我希望把它安裝到目錄的PetaLinux,我在這些初學者。

+1

另見(HTTPS [爲什麼我要使用SH從CD/DVD介質執行腳本?]:/ /unix.stackexchange.com/q/59561/56041)上的[Unix&Linux堆棧交換](http://unix.stackexchange.com/)。 'sudo bash。/ petalinux-v2017.1-finalinstaller.run'應該爲你工作。 – jww

+0

Stack Overflow是編程和開發問題的網站。這個問題似乎與題目無關,因爲它不涉及編程或開發。請參閱幫助中心的[我可以詢問哪些主題](http://stackoverflow.com/help/on-topic)。也許[超級用戶](http://superuser.com/)或[Unix&Linux堆棧交換](http://unix.stackexchange.com/)會是一個更好的地方。另請參閱[我在哪裏發佈有關Dev Ops的問題?](http://meta.stackexchange.com/q/134306) – jww

回答

0

爲什麼你把它放到/ opt /?

不管結果如何,試試這個:

$ cd /opt/PetaLinux 
$ sudo chmod +x petalinux-v2017.1-finalinstaller.run 
$ ./petalinux-v2017.1-finalinstaller.run 
+0

沒有被拒絕的權限,因此刪除了目錄PetaLinux中的opt和源文件現在位於我的下載只有文件夾。應該做什麼?將其安裝到opt目錄中? – jenny

+0

好的,這對我們來說更容易。試試'cd/your/download-folder','chmod + x petalinux-v2017.1-finalinstaller.run'和'sudo ./petalinux-v2015.4-final-installer-dec.run/opt/PetaLinux'。 – diegoos

+0

*「爲什麼你把它放到/opt/..."* - 你應該在評論中提問。 – jww

1

嘗試鍵入以下命令:

cd /opt/PetaLinux 
sudo chmod 777 PetaLinux$petalinux-v2017.1-finalinstaller.run 
./Petalinux-v2017.1-finalinstaller.run 
相關問題