[英]How to install pgdb on MacOS Yosemite?
On Mavericks, I downloaded the source code and and built and installed it with Distutils as I explained on Stackoverflow . 在Mavericks上,我下载了源代码 ,并使用Distutils进行了构建和安装,如我在Stackoverflow上所述 。
I try to reproduce it on Yosemite and I have the following error message: 我尝试在优胜美地上重现它,并且出现以下错误消息:
Exception: pg_config tool is not available.
例外:pg_config工具不可用。
The command in 'setup.py' that generates the problem is supposed to "Retrieve information about installed version of PostgreSQL." 生成问题的“ setup.py”中的命令应该是“获取有关已安装PostgreSQL版本的信息”。
f = os.popen('pg_config --%s' % s
f = os.popen('pg_config-%s'%s
I used the graphic installer to install PostgreSQL on my computer. 我使用图形安装程序在计算机上安装PostgreSQL 。
The graphic installer did not work. 图形安装程序无法正常工作。 By using Homebrew to install PostgreSQL, everything worked fine.
通过使用Homebrew安装PostgreSQL,一切正常。
brew install postgresql
brew安装postgresql
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.