尝试安装 Ruby 2.0.0 时出现“rvm: command not found";在 Linux 上 [英] Trying to install Ruby 2.0.0 gives me "rvm: command not found" on Linux

查看:49
本文介绍了尝试安装 Ruby 2.0.0 时出现“rvm: command not found";在 Linux 上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了 Ruby RVM 的一个问题/错误,所以让我们一点一点地分解这个问题,并希望找到解决这个问题的方法.所以让我们把这篇文章改成:

I have discovered an issue/bug with the Ruby RVM so lets break down this issue bit by bit and hopefully find a resolution to this problem. So let's change this post to:

将 Redhat LINUX 服务器的 Ruby 从 1.8.4 更新到 2.0.0

1.) 我们需要安装 RVM:简而言之,这就是我对这个问题的发现.首先我无法获得

1.) We need to install RVM: In a nutshell here's what I've found out about this problem. First I could not get the

gem install ruby-debug19 -- --with-ruby-include="${MY_RUBY_HOME/rubies/src}"

命令正常工作,原因是我的 linux 服务器上没有安装 RVM.因此,让我们继续下一步,将 Redhat Linux 服务器更新到 Ruby 2.0.0

command to work, the reason for this was due to not having the RVM installed on my linux server. So lets move on to the next step in getting a Redhat Linux server updated to Ruby 2.0.0

2.) 安装 RVM

所以我们需要:https://rvm.io/rvm/install安装 RVM,结果发现存在不允许在 RedHat Linux 服务器上安装 RVM 的问题/错误.

So we're going to require: https://rvm.io/rvm/install to get the RVM installed and as it turns out that there is an issue/bug that will not allow RVM to be installed on a RedHat Linux server.

当我们尝试安装 RVM 时,我们使用以下命令:

When we try installing RVM, we use this command:

\curl -L https://get.rvm.io | bash

我们在这里得到以下错误信息:

And we get the following information of the error here:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13784  100 13784    0     0  29723      0 --:--:-- --:--:-- --:--:-- 29723
Downloading RVM from wayneeseguin branch master
bash: line 133: which: command not found
bash: line 116: rvm_error: command not found

Could not download 'https://github.com/wayneeseguin/rvm/archive/master.tar.gz'.
  curl returned status '200'.

这是在 github.com 上打开的此问题的链接:https://github.com/wayneeseguin/rvm/issues/2121

Here is the link to this issue opened at github.com: https://github.com/wayneeseguin/rvm/issues/2121

3.) 可能的解决方案?

这是我建议解决此问题的方法,是否可以通过将这些文件从 rvm-stable.tar.gz 复制到服务器上相应的目录来安装 RVM?我的意思是,为什么不手动安装它?

Here's something I would propose to fix this problem, would it be possible to install RVM by copying these files from rvm-stable.tar.gz to their appropriate directories on a server? And by that I mean, why not install it manually?

推荐答案

您似乎没有正确配置 rvm.安装 rvm,然后尝试安装 ruby​​.您可以按照链接正确安装和配置rvm.

It seems like you have not configured rvm properly. Install rvm and than try installing ruby. You can follow the link to install and configure rvm properly.

https://rvm.io/rvm/install

这篇关于尝试安装 Ruby 2.0.0 时出现“rvm: command not found";在 Linux 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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