为什么在尝试使用 RVM 安装 Ruby 时会出现需求错误?

为什么在尝试使用 RVM 安装 Ruby 时会出现需求错误?

问题描述:

我想在我的 Ubuntu 系统上安装带有 RVM 的 Ruby 2.0 并收到一条错误消息:

I would like to install Ruby 2.0 with RVM on my Ubuntu system and get an error message:

rvm 1.23.5 (master)
ubuntu 12.04 (LTS)

**---- Error message: -------**
rvm install 2.0.0
Searching for binary rubies, this might take some time.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system.....................................................................................................................................
Error running 'requirements_debian_update_system ruby-2.0.0-p247',
please read /home/emzett/.rvm/log/1381812161_ruby-2.0.0-p247/update_system.log
Requirements installation failed with status: 100.

更新系统使用:

sudo apt-get update

试试:

rvm remove 2.0.0 # uninstall rvm
rvm get head --autolibs=3 # get the latest RVM and build required libs
rvm requirements # check if there are any dependencies that need to be installed.
rvm install ruby-2.0.0