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

查看:129
本文介绍了如何在不给予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.

使用1.9.3之类的 deployer安装Ruby时,它会触发任务来安装依赖项

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.

我不想在 sudoers列表中添加 deployer,也不想为其他用户安装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天全站免登陆