简体   繁体   English

bash:./ studio.sh:权限被拒绝(安装Android-Studio时出错)

[英]bash: ./studio.sh: Permission denied (error installing Android-Studio)

While I was trying to Install Android-Studio and execute the command 当我尝试安装Android-Studio并执行命令时

@abhinay-Pc:/android-studio/bin$`./studio.sh

It is showing the error: 它显示错误:

bash: ./studio.sh: Permission denied

I have already exported Java directory to /android-studio/bin folder` 我已经将Java目录导出到/android-studio/bin

(Java_Home = /usr/lib/jvm/java-7-oracle)

I have the java-7 installed on my system. 我在我的系统上安装了java-7。

You might not have chmod +x studio.sh try sh ./studio.sh 你可能没有chmod +x studio.sh试试sh ./studio.sh

If this was not it, try again like this: sh -x ./studio.sh . 如果不是这样,请再试一次: sh -x ./studio.sh This will show you every line that is run and will help you debug it. 这将显示运行的每一行,并将帮助您调试它。

Good luck. 祝好运。

您必须更改studio.sh文件的属性并更改允许此文件作为程序运行的权限

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

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