安装RVM时出错 [英] Errors installing RVM

查看:170
本文介绍了安装RVM时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Redhat 5.5上安装rvm,但出现此错误:

I'm trying to install rvm on redhat 5.5 and I'm getting this error:

[mc@owl-ci ~]$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   979  100   979    0     0   8168      0 --:--:-- --:--:-- --:--:--  318k
Cloning into rvm...
remote: Counting objects: 18463, done.
remote: Compressing objects: 100% (4985/4985), done.
remote: Total 18463 (delta 12517), reused 17903 (delta 12002)
Receiving objects: 100% (18463/18463), 3.19 MiB, done.
Resolving deltas: 100% (12517/12517), done.
mkdir: cannot create directory `/archives': Permission denied
mkdir: cannot create directory `/src': Permission denied
mkdir: cannot create directory `/log': Permission denied
mkdir: cannot create directory `/gems': Permission denied
mkdir: cannot create directory `/man': Permission denied
mkdir: cannot create directory `/rubies': Permission denied
mkdir: cannot create directory `/config': Permission denied
mkdir: cannot create directory `/user': Permission denied

我之前已经在其他计算机上安装了rvm,没有问题.

I've install rvm before on different machines with no problems.

对于为什么要在根路径下创建目录感到困惑,我以为一切都在〜/.rvm下(因此权限不应该有问题)

I'm confused on why it's trying to create directories under the root path, I thought everything went under ~/.rvm (therefore shouldn't have problems with permission)

推荐答案

好吧,显然我的旧答案实际上并不能为您提供正常的rvm安装.我似乎要报告一个最近的错误.同时,请按照此处的说明进行操作:

Okay so apparently my old answer wouldn't actually give you a functioning rvm installation. There appears to be a very recent bug that I will report. In the meantime, follow the instructions here:

http://rvm.io/rvm/install/

在从最新的源tarball安装/更新最新的rvm"部分下

Under the section "Installing / updating the latest rvm from the latest source tarball"

旧答案:

尝试下载rvm安装脚本: curl http://rvm.beginrescueend.com/releases/rvm-install-head> rvm-install-head

Try downloading the rvm install script: curl http://rvm.beginrescueend.com/releases/rvm-install-head > rvm-install-head

然后找到以下行: rvm_path ="$ {rvm_path:-" $ HOME/.rvm}"

Then find the line: rvm_path="${rvm_path:-"$HOME/.rvm"}"

并在前面添加导出": export rvm_path ="$ {rvm_path:-" $ HOME/.rvm}"

and add "export" in the front: export rvm_path="${rvm_path:-"$HOME/.rvm"}"

保存并运行修改后的文件: bash< rvm-install-head

Save and run the modified file: bash < rvm-install-head

这篇关于安装RVM时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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