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

标签 ruby-on-rails ruby ubuntu rvm

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

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

关于ruby-on-rails - 为什么在尝试使用 RVM 安装 Ruby 时出现需求错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19373560/

相关文章:

ruby-on-rails - 使用 RSpec/Capybara 确定表单提交

ubuntu - 在 Apache Airflow UI 中显示本地时间

python - 获取当前在 Windows 或 Ubuntu 上运行的程序列表

ubuntu - 如何在 ubuntu 20.04.3 上设置 Firefox 94 缓存位置

ruby-on-rails - Rails 中是否存在依赖注入(inject)?

ruby-on-rails - 事件记录正则表达式

ruby - 如何动态使用优化

javascript - 跟踪用户何时点击下载链接

ruby-on-rails - capybara 如何填写具有相同名称的所有输入?

javascript - AJAX Rails - 请求明显丢失 - 没有 UI 结果