Error sudo: gem: command not found

后端 未结 4 1381
日久生厌
日久生厌 2021-01-11 15:08

I\'m trying to install rubyrep on CentOS, and when executing sudo gem install rubyrep I get the error sudo: gem: command not found. Sudo and gem a

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-11 15:49

    If anyone runs across this, like I did, and the without sudo isn't an option. You may want to check your sudoers for the 'secure_path'.

    If this doesn't include the path of your installation/gem/ruby (which gem). Then you'll also get this error.

    Fedora 23, built from source.

提交回复
热议问题