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

编程入门 行业动态 更新时间:2024-10-25 06:31:51
本文介绍了如何在不授予 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 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:33:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/576180.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:访问权限   情况下   用户   如何在   系统

发布评论

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

>www.elefans.com

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