加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby – -bash:/Users/myname/.bash_profile:权限被拒绝

发布时间:2020-12-16 21:31:20 所属栏目:百科 来源:网络整理
导读:我安装了rvm( ruby版本管理器)并且它很成功,但我得到了 WARNING: You have ‘~/.profile’ file,you might want to load it,to do that add the following line to ‘/Users/myname/.bash_profile’: source ~/.profile 我是开发,终端和所有爵士乐的新手!但
我安装了rvm( ruby版本管理器)并且它很成功,但我得到了

WARNING: You have ‘~/.profile’ file,you might want to load it,to do
that add the following line to ‘/Users/myname/.bash_profile’: source
~/.profile

我是开发,终端和所有爵士乐的新手!但迟到总比没有好?!

我进入了终端:

'/Users/myname/.bash_profile'

并回到以下行

-bash: /Users/myname/.bash_profile: Permission denied
myname-MacBook-Pro:~ myname$

这就是我被困的地方!我需要为Drupal(欧米茄发展)VRM,并希望确保一切工作正常.谢谢你的帮助.

解决方法

在终端中运行以下命令输入.bash_profile文件:

vim~ / .bash_profile

如果仍然获得权限被拒绝,请在vim命令之前运行sudo

sudo vim~ / .bash_profile

从那里,将文本源?/ .profile添加到.bash_profile,然后点击:键盘上的wq来保存并关闭文件.打开新的终端窗口应该删除错误.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读