为磁盘目录授权出现:malloc: *** error for object xx: pointer being freed was not allocate问题解决
2014-02-14 11:23
1071 查看
今天本来想更新Mac的Ruby环境,于是在终端输入gem update --system命令,但是系统提示:
于是给/Library/Ruby/Gems/2.0.0目录授权,然后又更新,却被提示没有给/usr/bin目录授权,于是为其授权,再更新时终端一直没有反应,于是强行退出,再打开终端时,错误提示类似以下(当时没有保存错误信息,是复制别人的提问的):
然后终端进程就终止了,无法输入任何命令。
解决方法:修复磁盘权限。
1.打开Finder菜单中的应用程序选项:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201402/2b52a05aadb464ed0924b7c18a5ad108)
2.打开使用工具,再打开磁盘工具,选择我们的磁盘:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201402/ba132923c2c98ef393eab995344a7022)
3.点击左下角的验证磁盘权限,在验证完毕后会输出磁盘权限的权限错误信息:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201402/b07d04f0765c7e412d96392fbfc77173)
4.修复磁盘权限:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201402/a6305f3f83559c23e1b8200cc827fb0e)
5.再打开终端就没问题了。
参考资料:
gem install 对应的 permission deny 问题
How to Repair Disk Permissions on a Mac
Can't do anything in Terminal...
以上步骤可能不够完整,因为我没有Mac的安装Disk,所以做不了参考资料中所说的后面几个步骤,但是目前使用终端是没问题的。
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 console login(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,所以做不了参考资料中所说的后面几个步骤,但是目前使用终端是没问题的。
相关文章推荐
- malloc: *** error for object xx: pointer being freed was not allocate的问题的解决方法之一
- Unity 调用oc报错:malloc: *** error for object 0x1ecc0eb0: pointer being freed was not allocated
- malloc: *** error for object 0x1ecc0eb0: pointer being freed was not allocated
- 内存耗尽产生的crash: malloc: *** error for object 0x: pointer being reallocated was not allocated
- xcode 报错 malloc: *** error for object 0x6c3c5a4: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug------d
- Mac终端出现“terminal pointer being freed was not allocated…”解决办法
- malloc: *** error: incorrect checksum for freed object - object was probably modified after being freed
- 解决升级到最新版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)的问题
- python32版本,出现问题“struct.error: argument for 's' must be a bytes object”的解决办法
- fisheye Error occurred during initialization of VM Could not reserve enough space for object heap 问题解决!
- Python:malloc: *** error for object: incorrect checksum for freed object - object was
- ios 开发中出现的 pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug
- Morphia @Reference 属性删除出现The reference xxx could not be fetched for 问题解决
- 解决Virtual Box 下安装Mac OS X时出现的“hfs: could not initializc summary table for OSX Base System ”问题
- error LNK2011: precompiled object not linked in; image may not run 问题解决方法
- 使cocopods管理开源库编译出现Library not found for -lPods问题的解决方法
- PHP后台处理jQuery Ajax跨域请求问题 — xx was not called解决办法
- ubuntu 16.04下mysql5.7.17登录时出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' 问题解决!
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法