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

前端 未结 5 906
天命终不由人
天命终不由人 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:48

    Try this:

    sudo apt-get install ruby1.9.1 rubygems1.9.1
    

    or try building from source. this worked for me on ubuntu 9.04 and after a restart 1.9 was the standard ruby

提交回复
热议问题