【发布时间】:2014-08-01 08:23:22
【问题描述】:
警告:不要开始在终端中手动删除文件,除非 你已经先尝试了其他一切。手动删除可能会导致 卸载并安装程序崩溃。
这是 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.gz
Already 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.plist
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
No such file or directory - /usr/local/Cellar/postgresql/9.2.3/include/server
Error: No such file or directory - /usr/local/Cellar/postgresql/9.2.3/include/server
我正在安装 postgresql 9.3.5,我不在乎找不到 9.2.3!
➜ ~ brew install postgresql
Warning: postgresql-9.3.5 already installed, it's just not linked
但是 postgres 还是坏了。
有什么问题?
【问题讨论】:
标签: macos postgresql homebrew