博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
解决mac os上网上下下来的可执行文件无法执行的错误
阅读量:5241 次
发布时间:2019-06-14

本文共 1316 字,大约阅读时间需要 4 分钟。

找到解决办法 : http://blog.omgmog.net/post/a-possible-solution-to-bad-interpreter-operation-not-permitted-error-on-mac-os-x-lion/

原文如下:

Out of the blue I started having an issue in my Terminal.app on Lion where downloaded scripts/applications wouldn’t run. I first noticed this when trying to setup the Android SDK.

The problem looks like this:

-bash: ./android: /bin/sh: bad interpreter: Operation not permitted

After a bit of Google-fu, and a bunch of Apple Support Community threads that ended in people arguing about whether or not TextEdit caused this issue, I found a cause and a solution.

It turns out that for some reason, on Mac OS X Lion 10.7.3 apple is storing acom.apple.quarantine metadata file, which prevents executable files from being executed. Why is it doing this? Probably because the executable file was downloaded from the internet? who knows?

Anyway, there is a solution:

xattr -rd com.apple.quarantine [directory containing the executables]

So, for me with the Android SDK, I ran the following:

xattr -rd com.apple.quarantine /android-sdk/

This command deletes the com.apple.quarantine metadata files, allowing you to execute the executables.

That's a lengthy title I know, but it's there for the sake of keywords/SEO and such.

 

 

 

转载于:https://www.cnblogs.com/cszjutstar/archive/2013/03/26/2983147.html

你可能感兴趣的文章
react双组件传值和传参
查看>>
BNU29140——Taiko taiko——————【概率题、规律题】
查看>>
POJ 2289——Jamie's Contact Groups——————【多重匹配、二分枚举匹配次数】
查看>>
java 得到以后的日期
查看>>
[Kaggle] Sentiment Analysis on Movie Reviews
查看>>
python安装easy_intall和pip
查看>>
HDU1004
查看>>
MySQL高速缓存
查看>>
DropdownList绑定的两种方法
查看>>
价值观
查看>>
数值计算中,浮点类型给我们挖的坑
查看>>
(String)、toString、String.valueOf
查看>>
mongodb命令----批量更改文档字段名
查看>>
python多线程下载网页图片并保存至特定目录
查看>>
《人工智能的未来》--------------经典语录
查看>>
了解循环队列的实现
查看>>
CentOS 简单命令
查看>>
Linux中修改docker镜像源及安装docker
查看>>
数位dp(模板+例题)
查看>>
javascript中强制类型转换
查看>>