简体   繁体   中英

How to grant a folder with write permissions for installing gems in Ruby

the biggest problem I have with installing anything on my computer related to Ruby and Rails, is not having 'write' permissions to a specific folder.

For example: "You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory"

Instead of always using Sudo command, which sometimes doesn't solve the problem, how can I give myself 'write' permissions?

sudo chmod 777 directory_name

它向用户授予所有权限。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM