【发布时间】:2015-11-08 18:42:21
【问题描述】:
我正在尝试将这些行 export PATH=~/.rbenv/bin:$PATH eval "$(rbenv init -)" 添加到我的 ~/.bash_profile 但是当我输入 ~/.bash_profile 时它会给我这个错误
-bash: /Users/ryandavila/.bash_profile: 权限被拒绝。
我尝试按照基本 Github 结帐 (https://github.com/sstephenson/rbenv/blob/master/README.md#basic-github-checkout) 上的说明进行操作,但我得到了同样的错误。
仅供参考,我对 ruby on rails 还是一个人编程非常陌生。
【问题讨论】:
-
你能运行
ls -la ~/.bash_profile并将输出放在这里吗? -
嘿@JGutierrezC,我有同样的问题,这里是你问的上述命令的输出:'-rw-r--r-- 1 root root 132 Oct 7 22:10 /home/ kashif/.bash_profile' 。我现在该怎么办?