gpt4 book ai didi

ruby-on-rails - RVM Ruby on Rails 安装

转载 作者:行者123 更新时间:2023-12-04 16:26:12 26 4
gpt4 key购买 nike

我在使用 ubuntu 12.04 在我的机器上安装 rvm ROR 时遇到问题

这是我得到的输出:

输出#1:

Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/12.04/i386/ruby-1.8.7-p371.Continuing with compilation.
Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for ubuntu, might require sudo password.

在更新行的末尾,我得到了这个:

输出#2:
There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list

最佳答案

尝试运行 sudo apt-get update单独在命令行上。您的 Ubuntu 可能很旧,它的存储库可能已经过时。所以apt-get update本身可能无法在您的机器上工作。

要解决该问题,请运行以下命令:

# Disable RVM from trying to install necessary software via apt-get
rvm autolibs disable

# Then try installing Ruby:
rvm install 1.8.7

如果还是报错,看看能不能直接做 apt-get install不做 apt-get update (失败):
# Try to see if you can manually install the necessary software
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config

如果这也不起作用,请粘贴您的 apt-get update输出。

关于ruby-on-rails - RVM Ruby on Rails 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16758143/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com