macos – brew安装postgresql(升级)错误,无法链接 – 死链接到旧的不存在的版本

macos – brew安装postgresql(升级)错误,无法链接 – 死链接到旧的不存在的版本,第1张

概述Warning: Do not start deleting files manually in Terminal unless you’ve tried everything else first. Manual deletion may caused uninstall and install programs to crash. 这是QA风格的帖子,分享我解决问题的途径.我相信有更好的方法

Warning: Do not start deleting files manually in Terminal unless
you’ve trIEd everything else first. Manual deletion may caused
uninstall and install programs to crash.

这是QA风格的帖子,分享我解决问题的途径.我相信有更好的方法

我选择了一个较旧的mac air并希望将其设置为Ruby和Rails培训.在升级过程中,我遇到了安装postgresql的问题:

➜  ~  brew install postgresql....==> Installing postgresql==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/postgresql-9.3.5.mountain_lion.bottle.tar.gzAlready downloaded: /library/Caches/Homebrew/postgresql-9.3.5.mountain_lion.bottle.tar.gz==> Pouring postgresql-9.3.5.mountain_lion.bottle.tar.gz==> Caveats...To reload postgresql after an upgrade:    launchctl unload ~/library/LaunchAgents/homebrew.mxcl.postgresql.pList    launchctl load ~/library/LaunchAgents/homebrew.mxcl.postgresql.pListError: An unexpected error occurred during the `brew link` stepThe formula built,but is not symlinked into /usr/localNo such file or directory - /usr/local/Cellar/postgresql/9.2.3/include/serverError: No such file or directory - /usr/local/Cellar/postgresql/9.2.3/include/server

我正在安装postgresql 9.3.5,我不在乎9.2.3没有找到!

➜  ~  brew install postgresqlWarning: postgresql-9.3.5 already installed,it's just not linked

但是postgres仍然被打破了.

有什么问题?

我有类似的问题,但有另一个包.原来,有一堆死链接指向旧版本所有其他我的文件系统.以下是我案例中的帮助:

>运行brew链接< appname> (例如brew link postgress);
>如果成功完成,那么你是黄金,否则继续下一步;
>通过删除Cellar /< app name> /< version>来查看错误消息中的路径(例如/usr/local/Cellar/postgresql/9.2.3/include/server)转换路径.从它(例如/usr/local/include / server)
>在该路径下查找所有指向Cellar /< app name> /< version>的链接并删除它们;
>转到第1步.

希望有所帮助

总结

以上是内存溢出为你收集整理的macos – brew安装postgresql(升级)错误,无法链接 – 死链接到旧的不存在的版本全部内容,希望文章能够帮你解决macos – brew安装postgresql(升级)错误,无法链接 – 死链接到旧的不存在的版本所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/sjk/1181741.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存