Zel*_*Zel 13 ruby bash terminal
我安装了rvm(ruby版本管理器)并且它很成功,但我得到了
警告:您有'〜/ .profile'文件,您可能想要加载它,为此
添加以下行到'/Users/myname/.bash_profile':source~
/.profile
我是开发,终端和所有爵士乐的新手!但迟到总比没有好?!
我进入了终端:
'/Users/myname/.bash_profile'
Run Code Online (Sandbox Code Playgroud)
并回到以下行
-bash: /Users/myname/.bash_profile: Permission denied
myname-MacBook-Pro:~ myname$
Run Code Online (Sandbox Code Playgroud)
这就是我被困的地方!我需要vrm for Drupal(Omega开发),并希望确保一切正常.谢谢你的帮助.
小智 21
.bash_profile
通过在终端中运行此文件来输入文件:
vim ~/.bash_profile
如果仍然获得权限被拒绝,请sudo
在vim
命令之前运行
sudo vim ~/.bash_profile
从那里,添加文本source ~/.profile
到.bash_profile
,然后按:wq
键盘保存并关闭该文件上.打开新的终端窗口应该删除错误.
输入文件名将尝试执行它.相反,您想要编辑它.
打开TextEdit(或您喜欢的编辑器)并打开其中的文件/Users/myname/.bash_profile
.
您可以通过UI完成此操作,但如果需要,您可以从终端启动编辑器:
open -a TextEdit /Users/myname/.bash_profile
Run Code Online (Sandbox Code Playgroud)
然后,您可以将该行添加source ~/.profile
到文件并保存.
关闭终端并再次打开以应用更改.
归档时间: |
|
查看次数: |
53760 次 |
最近记录: |