How do I make Ruby 1.9 the default Ruby on Ubuntu?

前端 未结 5 897
天命终不由人
天命终不由人 2020-12-04 11:23

Is there any way, on Ubuntu 9.04, to install Ruby 1.8 as ruby1.8 (or get rid of it altogether) and have Ruby 1.9 be the default ruby?

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 11:50

    sudo \curl -L https://get.rvm.io | bash -s stable --ruby --rails
    

    will install an up-to-date version of ruby (and rails), and allow you to avoid brokenness of Ubuntu's RVM, see https://stackoverflow.com/a/9056395/497756.

    If you go this route, get rid of Ubuntu-installed versions and associated packages like bundle.

    Details here: https://rvm.io/rvm/install/

    (Note: this is the TL;DR version of the post by henry74.)

提交回复
热议问题