简体   繁体   English

如何在ubuntu的/ opt内的目录中运行和安装文件?

[英]How to run and install files in directory inside /opt in ubuntu?

Hi I have installed ubuntu in virtual box and I downloaded petalinux2017.1 into downloads directory and moved the run file into a directory called PetaLinux in opt in my root directory. 嗨,我已经在虚拟盒子中安装了ubuntu,并且将petalinux2017.1下载到downloads目录中,并将运行文件移到根目录中opt中名为PetaLinux的目录中。

But i couldnot run the file when my commands are in the following way and it is showing an error "command not found". 但是当我的命令采用以下方式时,我无法运行该文件,并且显示错误“找不到命令”。

my@my-Ubuntu: /opt/PetaLinux$petalinux-v2017.1-finalinstaller.run

i tried the same with sudo and the error is same and i want to install it into the directory PetaLinux and I am a beginner in these. 我用sudo尝试了相同的操作,错误是相同的,我想将其安装到目录PetaLinux中,我是其中的初学者。

Try these commands : 试试这些命令:

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

Why you put this into /opt/? 为什么将其放入/ opt /?

Whatever, try this: 无论如何,请尝试以下操作:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM