Using rbenv doesn't work with sudo?

后端 未结 4 1489
眼角桃花
眼角桃花 2020-12-10 07:56

Any commands that use sudo don\'t seem to work with RBenv.

I\'m trying to install ActiveRecord and it says I don\'t have write permission, so when I try

4条回答
  •  半阙折子戏
    2020-12-10 08:11

    I realise this is kind of old now, but this may help people in future:

    rbenv-sudo is a plugin for rbenv that allows you to run rbenv-provided Rubies and Gems from within a sudo session.

    https://github.com/dcarley/rbenv-sudo

提交回复
热议问题