我刚刚升级到 OS X Yosemite,在运行 Rails 应用程序时遇到了各种问题。我经常看到以下错误:
ruby(11958,0x7fff7e430300) malloc: *** error for object 0x7f880b801808: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6
任何想法如何解决这一问题?
Edit
我尝试遵循此页面上的建议:
如何让 Ruby / Homebrew / RVM 在 Yosemite 上工作?
但是当我编辑brew.rb以将路径更改为“当前”时,我收到错误:
Homebrew requires Leopard or higher. For Tiger support, see:
https://github.com/mistydemeo/tigerbrew
Solution
我完全删除了rvm并从头开始重新安装。为了删除 rvm,我首先必须运行
rvm fix-permissions
then
rvm implode
然后我按照此页面上的说明进行操作:
https://gorails.com/setup/osx/10.10-yosemite
rbenv也很不错。自从我第一次使用 ruby/rails 以来,我就一直在使用它,没有出现任何错误。
https://github.com/sstephenson/rbenv
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)