ruby的在ubuntu上的安装

apt (Debian or Ubuntu)

Debian GNU/Linux and Ubuntu use the apt package manager. You can use it like this:

$ sudo apt-get install ruby-full

As of writing, the ruby-full package provides Ruby 1.9.3, which is an old stable release, on Debian and Ubuntu.

可能会遇到这样的情况:你只要更新一下 apt-get update ,在进行安装就可以了

安装完成后:

可以输入:ruby -v进行验证

原文地址:https://www.cnblogs.com/fatfatdachao/p/4133215.html