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

前端 未结 2 809
甜味超标
甜味超标 2021-02-13 12:17

I upgraded rvm to 1.15.8, then went back down to 1.15.7 after having some problems in zsh. After downgrading, my Ruby 1.9+ versions went back in fine, but 1.8.7 won\'t install a

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-13 12:31

    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.

提交回复
热议问题