如何在不给予RVM用户sudo访问权限的情况下安装RVM系统要求

编程入门 行业动态 更新时间:2024-10-27 10:19:35
本文介绍了如何在不给予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 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系统要求

本文发布于:2023-06-08 06:34:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/576206.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:访问权限   情况下   用户   如何在   系统

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!