问题描述
我知道OS X Mountain Lion上安装了PostgreSQL版本,如果要使用此数据库引擎,则必须安装新版本并进行一些更改( /)。
现在我没有这样做。
现在我的Mac装有OS X Mavericks(全新安装),如果我运行 psql-版本
,如本文所述(),终端告诉我没有
〜»psql --version
zsh:将 psql更正为 sl [nyae] ? n
zsh:找不到命令:psql
在执行PostgreSQL时默认安装吗全新安装OS X Mavericks?
如果我想在Mavericks上尝试PostgreSQL,我是否只需要运行 brew install postgresql
可以吗?
有人尝试过吗?
非常感谢。
是的,简要安装postgresql
应该是安全的,提供的 brew医生
表示没有问题。
我的首选方法是始终保持OS X内置组件不变,并使用Homebrew安装要使用的所有内容的单独版本。过去,我曾经尝试过使用OS X内置函数,但事情有些急忙忙忙,尤其是在更新OS X时。
I knew there was a version of PostgreSQL installed on OS X Mountain Lion and if you want to work with this database engine you must install a new version and make some changes (http://nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion /). I didn't do this at that time because it was not necessary for me.
Now I have my Mac with OS X Mavericks (clean install) and if I run psql -- version
as can be seen in this article (http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x), the terminal tells me that there is no such command.
~ » psql --version
zsh: correct 'psql' to 'sl' [nyae]? n
zsh: command not found: psql
Does PostgreSQL get installed by default when I do a clean install of OS X Mavericks?
If i want to try PostgreSQL on Mavericks, do I just need to run brew install postgresql
and it`d be OK?
Has anyone tried this?
Thank you very much.
Yes, it should be safe to brew install postgresql
, provided brew doctor
indicates no problems.
My preferred approach is always to leave OS X builtins untouched, and use Homebrew to install separate versions of everything I'd like to work with. I've tried using OS X builtins in the past, and things have a way of getting messy in a hurry, especially when updating OS X.
这篇关于PostgreSQL是否在OS X Mavericks上存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!