本文介绍了为什么在尝试使用 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
这篇关于为什么在尝试使用 RVM 安装 Ruby 时会出现需求错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!