Having trouble installing any ruby 1.9.x (with rbenv) on mac osx due to psych YAML parse errors

瘦欲@ 提交于 2019-11-29 16:59:29
Mr. Ronald

I've seen errors like this when I had a YAML syntax error in my .gemrc or .irbrc.

Check / remove them and try again.

We had the same problem in our .gemrc. Removing .gemrc solved the problem. There were -- 2 dashes at the beginning of the file. Changing them to --- (3 dashes) and left the .gemrc in place. Then reinstalled 1.9.3p392 without any problems. Basically a YAML parser issue.

The complete .gemrc :

---
gem: --no-ri --no-rdoc

Change gem.rc file from

install: --no-rdoc --no-ri
update: --no-rdoc --no-rigem: --no-document

to

install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
install: --no-rdoc --no-ri
update: --no-rdoc --no-rigem: --no-document

change to:

install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
gem: --no-document

in order to keep option of Faster Gem Installation

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