在Windows 7 x64上使用pgxnclient时找不到pg_config可执行文件 [英] pg_config executable not found when using pgxnclient on Windows 7 x64

查看:295
本文介绍了在Windows 7 x64上使用pgxnclient时找不到pg_config可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Python 2.7.8和pgxn客户端。而且我尝试从bin文件夹的命令行运行此语句,并且路径设置正确

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

我收到错误 pg_config可执行文件未找到

But I got an error pg_config executable not found.

推荐答案

背景知识:pg_config是 PostgreSQL 提供的配置实用程序。此实用程序可用于各种应用程序。

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

解决方案:


  1. 安装 PostgreSQL

  2. 设置路径。系统属性>高级

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

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

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

从现在开始,任何需要pg_config的应用程序都可以在这里找到它。

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

I建议使用此方法,因为构建直接来自作者。您还可以找到独立的pg_config构建的可行替代方案。

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

这篇关于在Windows 7 x64上使用pgxnclient时找不到pg_config可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆