pg_config executable not found when using pgxnclient on Windows 7 x64

♀尐吖头ヾ 提交于 2019-11-30 01:23:06

问题


I installed Python 2.7.8 and pgxn client. And I tried to run this statement from command line from the bin folder and path is setup correctly

pgxnclient install  http://api.pgxn.org/dist/pg_repack/1.2.1/pg_repack-1.2.1.zip

But I got an error pg_config executable not found.


回答1:


Bakground: pg_config is the configuration utility provided by PostgreSQL. This utility is used by various applications.

Solution:

  1. Install PostgreSQL.
  2. Set the path. System Properties > Advanced

    PATH:C:\Program Files (x86)\PostgreSQL\9.4\bin\;

From this point on, any application that requires pg_config can find it here.

I suggest this method because the build is directly from the author. You can also find viable alternatives for standalone pg_config builds.




回答2:


I had this same error, and pg_config was in my path

You can try

pgxnclient install --pg_config "c:\path\to\pg_config.exe" $extensionName

You almost definitely need to run cmd.exe as an admin



来源:https://stackoverflow.com/questions/26717436/pg-config-executable-not-found-when-using-pgxnclient-on-windows-7-x64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!