rbenv installation permission denied

拟墨画扇 提交于 2019-12-05 12:25:58

It looks like the rbenv setup puts a line of shell scripting in your .bash_profile that attempts to create that directory. You could either give yourself permissions to create directories in /usr/local/rbenv, or sudo mkdir /directories/that/need/to/be/created once.

sudo mkdir -p /usr/local/rbenv/shims
sudo mkdir -p /usr/local/rbenv/versions

This was pretty useful System Wide Install With rbenv Specifically changing the permissions of rbenv directory to a group the users are in:

chgrp -R staff /usr/local/rbenv chmod -R g+rwxXs /usr/local/rbenv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!