找到你要的答案

Q:~/.bash_profile Permissions denied [closed]

Q:~ /。bash_profile权限否认[关闭]

I am trying add these lines export PATH=~/.rbenv/bin:$PATH eval "$(rbenv init -)" to my ~/.bash_profile however when ever I type ~/.bash_profile it gives me this error

-bash: /Users/ryandavila/.bash_profile: Permission denied.

I tried following the instructions on Basic Github checkout (https://github.com/sstephenson/rbenv/blob/master/README.md#basic-github-checkout) but I get the same error.

Just an FYI I'm very new to ruby on rails yet alone programming.

我想把这些线出口路径= ~ /。rbenv /斌:$路径评价“$(rbenv init -)“我的~ /。bash_profile然而当我型~ /。bash_profile它给我这个错误

-bash: /用户/ ryandavila / bash_profile:权限被拒绝。

我尝试了以下基本GitHub结帐指令(https://GitHub。COM / sstephenson / rbenv /斑点/主/自述。MD #基本GitHub结帐)但我得到同样的错误。

仅供参考我很新的Ruby on Rails还单独编程。

answer1: 回答1:

When you type ~/.bash_profile, you are execute it. You need open this file with text editor and paste export PATH.....

当你输入~ / bash_profile,你执行它。您需要打开此文件与文本编辑器和粘贴出口路径…

answer2: 回答2:

.bash_profile is not executable, which is why you get the error. To reload it after making changes, use bash's source command:

source ~/.bash_profile

Or the equivalent alias:

. ~/.bash_profile

。bash_profile是不可执行的,这就是为什么你的错误。重新加载后的变化,使用bash的源命令:

source ~/.bash_profile

或等效别名:

. ~/.bash_profile
bash  profile