问题描述
我在使用 ubuntu 12.04 的机器上安装 rvm ROR 时遇到问题
I'm having a trouble installing rvm ROR on my machine using ubuntu 12.04
这是我得到的输出:
输出 #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.
在更新行的末尾,我得到了这个:
and at the end of the line of update I get this:
输出 #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
本身可能无法在您的机器上运行.
Try running sudo apt-get update
separately on a command line. Your Ubuntu might be old and its repositories could be out of date. So apt-get update
itself is maybe not working in your machine.
要跳过该问题,请运行以下命令:
To step over that issue, run the following commands:
# 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
(失败):
If you still face errors, see if you can directly do apt-get install
without doing apt-get update
(which fails):
# 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
输出.
If that's also not working, then paste your apt-get update
output.
这篇关于RVM Ruby on Rails 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!