在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系统要求
发布评论