如何在不授予 RVM 用户 sudo 访问权限的情况下安装 RVM 系统要求 [英] How to install RVM system requirements without giving sudo access for RVM user

查看:22
本文介绍了如何在不授予 RVM 用户 sudo 访问权限的情况下安装 RVM 系统要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 Debian 服务器上,我有一个名为deployer"的用户,该用户没有 sudo 访问权限,并且安装了 RVM.

On my Debian server I have a user called "deployer" that does not have sudo access, and has RVM installed.

使用deployer"安装 Ruby 时,如 1.9.3,会触发安装依赖项的任务

When installing Ruby using "deployer", like 1.9.3, it triggers a task to install dependencies

"Installing requirements for debian, might require sudo password."

失败并停止安装,因为部署者"不能 sudo.

which fails and stops installation because "deployer" can not sudo.

我不想将deployer"添加到 sudoers 列表中,也不想为其他用户安装 RVM 只是为了一次性安装依赖项.

I don't want to add "deployer" into the sudoers list, and don't want to install RVM for some other user just for a one-time use for installing dependencies.

安装该依赖项的正确方法是什么?或者我如何列出它们以手动安装?

What is the correct way to install that dependencies? Or how do I list them to install manually?

推荐答案

这确实是 RVM 的一个新特性,叫做 autolibs,它会自动安装依赖项.

This is indeed a new feature of RVM called autolibs, which automatically installs dependencies.

如果您已经安装了 RVM,并且它要求您输入 sudo 密码,您可以禁用自动库:

If you have already installed RVM, and it is asking you for your sudo password, you can disable autolibs:

$ rvm autolibs disable
$ rvm requirements # manually install these
$ rvm install ruby

否则,您可以使用以下命令安装没有自动库的 RVM:

Otherwise, you can install RVM without autolibs with this command:

$ curl -L https://get.rvm.io | bash -s -- --autolibs=read-fail

我理解动机,但觉得它很烦人.我不想将我的 sudo 密码放入 RVM,也不想将捆绑!请社区,停止这样做.

I understand the motivation, but find it rather annoying. I do not want to put my sudo password into RVM, nor for that matter Bundle! Please community, stop doing this.

这篇关于如何在不授予 RVM 用户 sudo 访问权限的情况下安装 RVM 系统要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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