How to update ruby on linux (ubuntu)?

前端 未结 9 543
难免孤独
难免孤独 2021-01-30 03:13

I\'m newbie on both ruby and linux, so I\'m sure this is trivial but I don\'t know yet. I currently have ruby 1.8.7 installed and I want to update it to ruby 1.9. How can I do t

9条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 03:55

    Ruby is v2.0 now. Programs like Jekyll (and I am sure many others) require it. I just ran:

    sudo apt-get install ruby2.0

    check version

    ruby --version
    

    Hope that helps

提交回复
热议问题