简体   繁体   English

RVM Ruby on Rails安装

[英]RVM Ruby on Rails installation

I'm having a trouble installing rvm ROR on my machine using ubuntu 12.04 我在使用ubuntu 12.04在我的机器上安装rvm ROR时遇到了麻烦

here are the outputs I'm getting: 这是我得到的输出:

Output #1: 输出#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: 在更新行的最后我得到这个:

Output #2: 输出#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

Try running sudo apt-get update separately on a command line. 尝试在命令行上单独运行sudo apt-get update Your Ubuntu might be old and its repositories could be out of date. 您的Ubuntu可能已经过时,其存储库可能已过时。 So apt-get update itself is maybe not working in your machine. 所以apt-get update本身可能无法在你的机器上运行。

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

If you still face errors, see if you can directly do apt-get install without doing apt-get update (which fails): 如果您仍然遇到错误,请查看是否可以直接执行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

If that's also not working, then paste your apt-get update output. 如果这也不起作用,那么粘贴apt-get update输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM