简体   繁体   English

安装RVM时出错

[英]Errors installing RVM

I'm trying to install rvm on redhat 5.5 and I'm getting this error: 我正在尝试在redhat 5.5上安装rvm,并且出现此错误:

[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

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下(因此权限应该没有问题)

Only use RVM 1.5.1+ or latest head. 仅使用RVM 1.5.1+或最新的磁头。

You may now install as user or root. 您现在可以以用户或root身份安装。 Do not use the system-wide script any longer. 不要再使用系统范围的脚本。

bash < <( curl -s -k https://rvm.beginrescueend.com/install/rvm ) bash <<(curl -s -k https://rvm.beginrescueend.com/install/rvm

For the most recent information and best practices on the correct way to install RVM, please read the documentation website . 有关正确安装RVM的最新信息和最佳做法,请阅读文档网站 Also be sure to read the RVM basics documentation . 另外,请务必阅读RVM基础文档

~Wayne 〜韦恩

Okay so apparently my old answer wouldn't actually give you a functioning rvm installation. 好的,显然我的旧答案实际上不会为您提供正常运行的rvm安装。 There appears to be a very recent bug that I will report. 我似乎要报告一个最近的错误。 In the meantime, follow the instructions here: 同时,请按照此处的说明进行操作:

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

Under the section "Installing / updating the latest rvm from the latest source tarball" 在“从最新的源tarball安装/更新最新的rvm”部分下

Old Answer: 旧答案:

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

Then find the line: rvm_path="${rvm_path:-"$HOME/.rvm"}" 然后找到以下行:rvm_path =“ $ {rvm_path:-” $ HOME / .rvm“}”

and add "export" in the front: export rvm_path="${rvm_path:-"$HOME/.rvm"}" 并在前面添加“ export”:export rvm_path =“ $ {rvm_path:-” $ HOME / .rvm“}”

Save and run the modified file: bash < rvm-install-head 保存并运行修改后的文件:bash <rvm-install-head

It looks like 1.3.0 is broken for the moment. 目前看来1.3.0已损坏。 Checkout 1.2.9 in ~/.rvm/src/rvm for a working version. 在〜/ .rvm / src / rvm中签出1.2.9以获取可用版本。

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

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