【问题标题】:RVM Ruby on Rails installationRVM Ruby on Rails 安装
【发布时间】:2013-05-21 10:08:57
【问题描述】:

我在使用 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

【问题讨论】:

  • 您正在使用旧的和损坏的(由 Ubuntu)。试试this
  • @anonymousxxx 你是什么意思?我该怎么办?
  • 你看到我评论的链接了吗?
  • 它没有安装 ruby​​。它只更新并显示了输出#2。
  • 你跑过sudo apt-get updatesudo apt-get install build-essential吗?

标签: ruby-on-rails rvm ubuntu-12.04


【解决方案1】:

尝试在命令行上单独运行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 输出。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-12
    • 2013-05-13
    • 1970-01-01
    • 2018-06-25
    • 1970-01-01
    相关资源
    最近更新 更多