RVM安装及权限问题
我通过此教程和步骤号安装RVM 4 echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && 。 “$HOME/.rvm/scripts/rvm” '>> ~/.bash_profile
我收到了这个错误
-bash:/Users/my_name/.bash_profile:权限被拒绝
我尝试使用 sudo 运行它,但仍然收到此错误
I install RVM by this tutorial and on the step number 4 echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" ' >> ~/.bash_profile
I got this one error
-bash: /Users/my_name/.bash_profile: Permission denied
I tried it run with the sudo, but I am still getting this error
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不想进行全局安装,请不要使用 sudo 进行 rvm 安装。
要修复此类权限错误,请检查该文件的当前权限:
该文件应由
my_name
用户拥有并具有读写访问权限。如果不是,请像这样更改所有权:以及任何潜在的权限错误
如果您曾经使用root来安装用户的rvm,请像这样修复它:
Don't use sudo for rvm installs if you don't want a global install.
To fix a permission error like this, check the current permissions on that file:
It should be owned by the
my_name
user and have read and write access. If it's not, change the ownership like so:and any potential permission errors with
If you ever used root to install your user's rvm, fix it like this: