How to install RVM system requirements without giving sudo access for RVM user

后端 未结 4 1661
面向向阳花
面向向阳花 2020-12-07 08:45

On my Debian server I have a user called \"deployer\" that does not have sudo access, and has RVM installed.

When installing Ruby using \"deployer\", li

4条回答
  •  一生所求
    2020-12-07 09:49

    This is indeed a new feature of RVM called autolibs, which automatically installs dependencies.

    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
    

    Otherwise, you can install RVM without autolibs with this command:

    $ \curl -L https://get.rvm.io | bash -s -- --autolibs=read-fail
    

    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.

提交回复
热议问题