我正试图在github上发布我的首批项目之一,但我在本地测试构建时遇到了困难。
我遵循以下步骤:https://jekyllrb.com/docs/installation/macos/
我被困在下面的命令行运行中:
echo "source $(brew --prefix)/opt/chruby/share/chruby/chruby.sh" >> ~/.bash_profile
echo "source $(brew --prefix)/opt/chruby/share/chruby/auto.sh" >> ~/.bash_profile
echo "chruby ruby-3.1.2" >> ~/.bash_profile # run 'chruby' to see actual version每次运行第一个错误时,都会得到以下错误:
-bash: /User/account/.-bash_profile:权限被拒绝
这对我来说是非常新的,老实说,我不知道我在做什么,当涉及到控制台的时候。我在MacOS Monetory,我的壳是bash。任何帮助都是非常感谢的!
发布于 2022-09-19 18:21:47
某些东西已经损坏或更改了所有权,从而使.bash_profile脚本根化。
打开Terminal.app并执行以下操作:
mv -f ~/.bash_profile ~/.bash_profilecp ~/.bash_profile.old ~/.bash_profile这些命令显示不产生错误。
现在,尝试重新运行您的脚本以附加到.bash_profile。
https://stackoverflow.com/questions/73315913
复制相似问题