Ruby - LoadError enc/trans/single_byte

一笑奈何 提交于 2019-12-01 05:21:43

Is this happening within the cozy confines of your development environment? If so, I'd consider running it under pry-rescue's Pry.rescue do … end block and poking around while there.

I suspect a data difference. Is there any non-ASCII intentionally involved in this tree? You could hunt it down with something like this:

ruby -e 'Dir["**/*.yml"].each{|e| File.read(e)[/[^\x0-\x7f]/] and puts e}' 

As you indicated below, the rbenv installation is shared with other users, so be sure to redo the permissions upon any change:

 chmod a+r -R ~/.rbenv/

Or perhaps create a shared group, such as src, then:

 chgrp src ~/.rbenv && chmod g+r -R ~/.rbenv
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!