[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to set the default ruby version?

于 2012-1-18 21:05, shiyao.ma 写道:
I now prefer to use ruby1.9. However, debian sid's default ruby version is 1.8.x. I deleted the soft link of /usr/bin/ruby and made a new soft link /usr/bin/ruby to /usr/bin/ruby1.9.3. I thought that's enough, however I found it is not feasible. I have to update the soft link of irb, ri and more. So, I wonder whether there exists a handy and nice method of changing the default version of ruby?

Debian has a better method more than using soft link. You can use command "update-alternatives", input "man update-alternatives" for details.

Reply to: