在 Ubuntu 12.04.1 LTS 上安装 ruby​​ 2.0.0-p247 [英] Installing ruby 2.0.0-p247 on Ubuntu 12.04.1 LTS

查看:56
本文介绍了在 Ubuntu 12.04.1 LTS 上安装 ruby​​ 2.0.0-p247的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 ubuntu 机器上安装 ruby​​ 2.0,但我不断收到以下信息:

I am trying to install ruby 2.0 on my ubuntu box and I keep getting the following:

SERVER_USER@SERVER_NAME:/var/www/FOLDER_NAME$ rvm get stable && rvm install ruby-2.0.0
ERROR: Unknown ruby interpreter version: '2.0.0'
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-2.0.0-p247, this may take     a while depending on your cpu(s)...

ruby-2.0.0-p247 - #fetching
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
curl: (3) <url> malformed
ERROR: There was an error, please check /usr/share/ruby-rvm/log/ruby-2.0.0-p247/*.log.     Next we'll try to fetch via http.
Trying http:// URL instead.
curl: (3) <url> malformed
ERROR: There was an error, please check /usr/share/ruby-rvm/log/ruby-2.0.0-p247/*.log
ERROR: There has been an error while trying to fetch the source.
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

它提到的日志也不存在.此外,如果它在我跑步时有帮助:

The log it mentions also doesn't exist. Also if it helps at all when I run:

rvm requirements

我回来了

ERROR: Unrecognized command line argument: 'requirements' ( see: 'rvm usage' )

以前没见过的

推荐答案

原来我的 rvm 被破坏了,因为我使用了 apt-get install ruby​​-rvm 而不是直接从 rvm.io 中使用 curl,所以重新安装 rvm 就成功了.

Turns out my rvm was busted because i had used apt-get install ruby-rvm instead of the curl directly from rvm.io, so reinstalling rvm did the trick.

这篇关于在 Ubuntu 12.04.1 LTS 上安装 ruby​​ 2.0.0-p247的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆