Mac OS X运行程序出现bad interpreter: operation not permitted的解决方案
来源:互联网 发布:stc单片机iap远程升级 编辑:程序博客网 时间:2024/04/30 01:11
最近想在我的mac笔记本上安装gvim,从官网上下载了程序后竟然非常诡异的双击无法打开,命令行执行时系统报错:
/bin/sh bad interpreter operation not permitted
我的系统是Mac OS X,版本10.8.2
这让我非常郁闷,在网上查了良久,找到了一个问题分析与解决方案:
http://blog.omgmog.net/post/a-possible-solution-to-bad-interpreter-operation-not-permitted-error-on-mac-os-x-lion/概括一下主要内容:
在新版本的mac os中,至少是10.7.3之后,应用程序都会带有一个附加属性:com.apple.quarantine跟作者、创建日期类似,这个属性也属于metadata,作用是阻止可执行程序运行……?所以一个解决方案就是删掉这个属性。
以我这次的情况为例,我要运行MacVim.app,结果双击无法打开,在命令行中运行如下指令:xattr -rd com.apple.quarantine MacVim.app之后双击就可以打开了!
顺带一提xattr中参数r代表对文件夹进行递归操作,d表示删除(更多参数可以百度之),苹果的.app文件其实是个文件夹可以右键打开的
转载自:http://blog.csdn.net/mgarfield/article/details/45848377
0 0
- Mac OS X运行程序出现bad interpreter: operation not permitted的解决方案
- Mac OS X运行程序出现bad interpreter: operation not permitted的解决方案
- Mac OS X 11中的/usr/ 的“Operation not permitted”
- Mac OS X 11 以后版本出现"Operation not permitted"错误
- Mac出现Operation not permitted
- 在Mac中执行命令行,报无权限错(bad interpreter: Operation not permitted)
- Mac OS X 11中的/usr/bin 的“Operation not permitted”
- Mac OS X 11中的/usr/bin 的“Operation not permitted”
- Mac OS X 11中的/usr/bin 的“Operation not permitted”
- Mac OS X 11中的/usr/bin 的“Operation not permitted”
- 关于Mac OS下的pip:Operation not permitted问题
- mac os x python安装matplotlib 库 出错: Operation not permitted
- OS X 10.11 El Capitan sudo返回Operation not permitted的解决方法
- Mac root Operation not permitted
- Mac-Operation not permitted问题
- 解决CocoaPods在OS X 10.11出现问题While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/
- QT在终端运行时出现ptrace:operation not permitted的解决方法
- 《三分热度》:mac中意外的Operation not permitted
- VictorComm于XE8中安装与简易使用
- Atitit.redis操作总结
- 五种线程状态
- Fresco特性与Android studio配置
- Atitit php序列化 php的serialize序列化和json序列化
- Mac OS X运行程序出现bad interpreter: operation not permitted的解决方案
- 数据结构
- 六、String类的练习
- 进程与线程
- 第十一章 异常处理
- zizaco/entrust 5.2.x-dev Class name must be a valid object or a string
- 加锁
- c 语言
- 【总结】AWS的(助理)架构师认证体系详解