为磁盘目录授权出现:malloc: *** error for object xx: pointer being freed was not allocate问题解决
来源:互联网 发布:网络教育公共服务体系 编辑:程序博客网 时间:2024/06/06 14:03
今天本来想更新Mac的Ruby环境,于是在终端输入gem update --system命令,但是系统提示:
然后终端进程就终止了,无法输入任何命令。
RROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
于是给/Library/Ruby/Gems/2.0.0目录授权,然后又更新,却被提示没有给/usr/bin目录授权,于是为其授权,再更新时终端一直没有反应,于是强行退出,再打开终端时,错误提示类似以下(当时没有保存错误信息,是复制别人的提问的):
Last login: Sat Oct 27 22:14:07 on consolelogin(320,0x7fff75096180) malloc: *** error for object 0x7fa673c00380: pointer being freed was not allocated*** set a breakpoint in malloc_error_break to debug [Process completed]
然后终端进程就终止了,无法输入任何命令。
解决方法:修复磁盘权限。
1.打开Finder菜单中的应用程序选项:
2.打开使用工具,再打开磁盘工具,选择我们的磁盘:
3.点击左下角的验证磁盘权限,在验证完毕后会输出磁盘权限的权限错误信息:
4.修复磁盘权限:
5.再打开终端就没问题了。
参考资料:
gem install 对应的 permission deny 问题
How to Repair Disk Permissions on a Mac
Can't do anything in Terminal...
以上步骤可能不够完整,因为我没有Mac的安装Disk,所以做不了参考资料中所说的后面几个步骤,但是目前使用终端是没问题的。
0 0
- 为磁盘目录授权出现:malloc: *** error for object xx: pointer being freed was not allocate问题解决
- malloc: *** error for object xx: pointer being freed was not allocate的问题的解决方法之一
- malloc: *** error for object 0x1ecc0eb0: pointer being freed was not allocated
- Unity 调用oc报错:malloc: *** error for object 0x1ecc0eb0: pointer being freed was not allocated
- 内存耗尽产生的crash: malloc: *** error for object 0x: pointer being reallocated was not allocated
- Mac终端出现“terminal pointer being freed was not allocated…”解决办法
- Python:malloc: *** error for object: incorrect checksum for freed object - object was
- object file (xx.a(xx.o)) was built for newer iOS version (10.3) than being linked (10.2)
- c++ error: 'malloc' was not declared in this scope
- 解决升级到最新版cocoaPods出现file was built for archive which is not the architecture being linked (x86_64)的问题
- 解决升级到最新版cocoaPods出现file was built for archive which is not the architecture being linked (x86_64)的问题
- Xcode 7 warnings: object file was built for newer iOS version than being linked
- 警告:object file was built for newer iOS version (8.3) than being linked (7.0)
- 真机file was built for archive which is not the architecture being linked (armv7s)
- file was built for archive which is not the architecture being linked (armv7s)
- iOS 链接错误file was built for archive which is not the architecture being linked (i386)
- file was built for archive which is not the architecture being linked (i386)
- 关于未对齐指针释放问题(Non-aligned pointer being freed)
- JavaMail详解
- BeanUtils.copyProperties() 用法
- android 不休眠不锁屏
- JAVA--Set,List,Map的区别
- hlist_head和list_head区别以及container_of机制 - [linux内核]
- 为磁盘目录授权出现:malloc: *** error for object xx: pointer being freed was not allocate问题解决
- windows 2003 VPN服务器配置
- 关于SetWindowOrgEx、SetViewportOrgEx、SetViewportExtEx 和SetWindowExtEx 详解
- HDOJ 1042 N!
- 高效加载大图片
- ofstream的使用方法
- 关于android的theme
- VS2010 IDE 如何解决未经处理的win32异常
- cookie 工具类