rvm can no longer install 1.8.7-p352 on Mac OS X Mountain Lion

南楼画角 提交于 2019-12-03 11:40:45
mpapis

it is problem in detecting tcl/tk by ruby 1.8.7, the solution is to disable it:

rvm reinstall 1.8.7 --without-tcl --without-tk

the other solution when tcl/tk is needed: https://stackoverflow.com/a/11666019/497756

I think I ended up with two similar questions on sf here. My main problem was that the tcl.h include file on Mountain Lion (location: /usr/include/tcl.h symlinked) could not resolve an internal reference it had to "X11/Xlib.h". I thought that installing tcl and tk through homebrew would fix the problem by generating a path to Xlib.h that could be resolved. So I ran:

brew install tcl

and:

brew install tk

and:

rvm remove 1.8.7-p352
rvm install 1.8.7-p352

and it worked. But Michal's answer above would have worked just as well I think. This answer will serve to help people build it that need tcl and tk.

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