[Linux] gem installation permissions

gem installation permission error

  1. Error message:

You don’t have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

  1. solve:

At this time, you only need to add sudo before the command, for example: sudo gem update --system, sudo is to obtain administrator privileges, and enter the command to continue execution.

Guess you like

Origin blog.csdn.net/m0_46537958/article/details/107360043