此问题已存在:
home brew says no such file or directory [closed]
三个月前关门了。
我对bash的sudo命令等还比较陌生。我最近想升级我的psql,当我试图brew安装它时,它没有发生。原来brew本身在2021年已经停止支持我的旧版本的mac os。这意味着我不能用brew做任何事情。只有当我第一次运行brew更新时,它给我以下信息:
$brew update
warning: unable to unlink .gitignore: Permission denied
warning: unable to unlink .yardopts: Permission denied
warning: unable to unlink CODEOFCONDUCT.md: Permission denied
warning: unable to unlink CONTRIBUTING.md: Permission denied
warning: unable to unlink LICENSE.txt: Permission denied
warning: unable to unlink SUPPORTERS.md: Permission denied
error: unable to unlink old 'README.md' (Permission denied)
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
“brew更新”,“brew安装”或“brew医生”-什么都不起作用。之后,当我尝试,我得到No such file or directory
:
$brew install postgresql@12
-bash: /usr/local/bin/brew: No such file or directory
想知道bash是否有可以用来升级我的psql版本的命令?如果有,怎么做?
1条答案
按热度按时间cvxl0en21#
对我来说,这似乎更像是一个权限问题,你有没有试过将
sudo
前置到brew update
?