在我的Debian服务器上,我有一个名为"deployer“的用户,他没有sudo
访问权限,但安装了RVM。
当使用"deployer“安装Ruby时,比如1.9.3,它会触发一个任务来安装依赖项
"Installing requirements for debian, might require sudo password."
它会失败并停止安装,因为"deployer“不能sudo。
我不想将"deployer“添加到sudoers列表中,也不想为其他用户安装RVM,只是为了一次性安装依赖项。
安装依赖项的正确方法是什么?或者如何列出它们以手动安装?
发布于 2013-06-21 01:14:07
这确实是RVM的一个名为autolibs
的新特性,它可以自动安装依赖项。
如果你已经安装了RVM,并且它要求你输入sudo
密码,你可以禁用autolibs:
$ rvm autolibs disable
$ rvm requirements # manually install these
$ rvm install ruby
否则,您可以使用以下命令安装不带autolibs的RVM:
$ \curl -L https://get.rvm.io | bash -s -- --autolibs=read-fail
我理解他们的动机,但我觉得这很烦人。我不想把我的sudo密码放到RVM中,也不想放到Bundle中!请社区不要再这样做了。
发布于 2014-05-12 13:56:04
我更喜欢这个
$ rvm autolibs fail
$ rvm install ruby
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/12.04/x86_64/ruby-2.1.1.tar.bz2
Checking requirements for ubuntu.
Missing required packages: gawk g++ gcc make libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
RVM autolibs is now configured with mode '2' => 'check and stop if missing',
please run `rvm autolibs enable` to let RVM do its job or run and read `rvm autolibs [help]`
or visit https://rvm.io/rvm/autolibs for more information.
Requirements installation failed with status: 1.
然后,我可以使用root重新登录并运行
# apt-get install gawk g++ gcc make libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
发布于 2013-06-07 17:37:05
这个问题是在最新的RVM版本中引入的。不知道确切的时间,但肯定是在过去的3-4个月。
试试这个:
rvm get 1.18.8
rvm install <whichever-version-you-want>
我不知道在1.18.8和1.20.12之间的路径上,这个问题是什么时候出现的,但对我来说,RVM v1.18.8可以安装,v1.20.12安装失败。
https://stackoverflow.com/questions/16563115
复制相似问题