How to update Ruby to 1.9.x on Mac?

前端 未结 9 1957
一个人的身影
一个人的身影 2020-12-02 04:15

I have created a new user account on my mac and I am trying to update to the current version of ruby on it (1.9.2) from the snow leopard default of 1.8.7. Can somebody point

9条回答
  •  半阙折子戏
    2020-12-02 05:01

    With brew this is a one-liner:

    (assuming that you have tapped homebrew/versions, which can be done by running brew tap homebrew/versions)

    brew install ruby193
    

    Worked out of the box for me on OS X 10.8.4. Or if you want 2.0, you just brew install ruby

    More generally, brew search ruby shows you the different repos available, and if you want to get really specific you can use brew versions ruby and checkout a specific version instead.

提交回复
热议问题