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

前端 未结 2 810
甜味超标
甜味超标 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.

    0 讨论(0)
  • 2021-02-13 12:39

    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

    0 讨论(0)
提交回复
热议问题