make: pg_config: Command not found

摘要:
[ root@localhostc ]#

报错:

[root@localhost c]#make
make: pg_config: Command notfound
make: ***No targets.  Stop.
[root@localhost c]# 

解决

[root@localhost c]#yum install postgresql-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds fromcached hostfile
 *base: mirrors.btte.net
 *extras: mirrors.zju.edu.cn
 *updates: mirrors.zju.edu.cn
Resolving Dependencies
-->Running transaction check
---> Package postgresql-devel.x86_64 0:8.4.20-6.el6 will be installed
--> Processing Dependency: postgresql-libs(x86-64) = 8.4.20-6.el6 for package: postgresql-devel-8.4.20-6.el6.x86_64
--> Processing Dependency: postgresql(x86-64) = 8.4.20-6.el6 for package: postgresql-devel-8.4.20-6.el6.x86_64
--> Processing Dependency: libpq.so.5()(64bit) for package: postgresql-devel-8.4.20-6.el6.x86_64
--> Processing Dependency: libpgtypes.so.3()(64bit) for package: postgresql-devel-8.4.20-6.el6.x86_64
--> Processing Dependency: libecpg_compat.so.3()(64bit) for package: postgresql-devel-8.4.20-6.el6.x86_64
--> Processing Dependency: libecpg.so.6()(64bit) for package: postgresql-devel-8.4.20-6.el6.x86_64
-->Running transaction check
---> Package postgresql.x86_64 0:8.4.20-6.el6 will be installed
---> Package postgresql-libs.x86_64 0:8.4.20-6.el6 will be installed
-->Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================Package                                       Arch                                Version                                     Repository                         Size
=======================================================================================================================================================================Installing:
 postgresql-devel                              x86_64                              8.4.20-6.el6                                base                              816k
Installing fordependencies:
 postgresql                                    x86_64                              8.4.20-6.el6                                base                              2.6M
 postgresql-libs                               x86_64                              8.4.20-6.el6                                base                              202k

Transaction Summary
=======================================================================================================================================================================Install       3Package(s)

Total download size: 3.6M
Installed size: 18M
Is this ok [y/N]: y
Downloading Packages:
(1/3): postgresql-8.4.20-6.el6.x86_64.rpm                                                                                                       | 2.6 MB     00:01(2/3): postgresql-devel-8.4.20-6.el6.x86_64.rpm                                                                                                 | 816 kB     00:00(3/3): postgresql-libs-8.4.20-6.el6.x86_64.rpm                                                                                                  | 202 kB     00:00     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                                                  2.3 MB/s | 3.6 MB     00:01Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : postgresql-libs-8.4.20-6.el6.x86_64                                                                                                                 1/3Installing : postgresql-8.4.20-6.el6.x86_64                                                                                                                      2/3Installing : postgresql-devel-8.4.20-6.el6.x86_64                                                                                                                3/3Verifying  : postgresql-devel-8.4.20-6.el6.x86_64                                                                                                                1/3Verifying  : postgresql-libs-8.4.20-6.el6.x86_64                                                                                                                 2/3Verifying  : postgresql-8.4.20-6.el6.x86_64                                                                                                                      3/3
Installed:
  postgresql-devel.x86_64 0:8.4.20-6.el6                                                                                                                               

Dependency Installed:
  postgresql.x86_64 0:8.4.20-6.el6                                                postgresql-libs.x86_64 0:8.4.20-6.el6                                               

Complete!
[root@localhost c]# 

免责声明:文章转载自《make: pg_config: Command not found》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Kafka-如何保证可靠性PHP实现IP访问限制及提交次数的方法详解下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

PostgreSQL之oracle_fdw安装与使用

目的介绍 现在项目开发遇到一个问题,就是需要从PostgreSQL中访问Oracle数据库 身为渣渣猿一脸懵逼。于是乎请教了公司的数据库方面的大牛韩工。告诉我用oracle_fdw 可以实现,但是在实现安装的过程中,还是各种问题,又麻烦韩工帮我看了好久。很不好意思,现在 针对这次安装的过程进行记录下,因为部署的时候还要用到 安装oracle_fdw 1.下...

PostgreSQL手动主从切换

主从切换操作: 1》主库宕机或者测试主备切换情况下停掉主库:systemctl stop postgres 从库会报日志错误信息:[root@db02 /]# cd /var/postgresql/logfile/[root@db02 logfile]# lltotal 4-rw-rw-r--. 1 postgres postgres 3074 Sep 2...

PostgreSQL在湖南麒麟3.2下的安装配置

1、smart登录系统桌面,通过左下角菜单执行pgAdmin III,有以下告警: 解决方法:1)切换到/home/postgres目录,确认smart用户对PostgreSQL目录是否有读取、执行缺陷,如果没有,则赋予smart用户读取、执行权限;2)切换/home目录,确认smart用户对PostgreSQL目录是否有读取权限,如果没有,则赋予smar...

postgres使用dblink

在oracle中,经常会使用dblink将一些线上的数据导入到开发库中定位问题。 postgresql中也可以使用dblink。 下面是网上的资料:         1、如何在postgresql中建立dblink?         2、建立成功后,如何使用dblink?         3、postgresql中的dblink和oracle中的dbl...

Zabbix监控PostgreSQL

title: Zabbix监控PostgreSQLtags: PostgreSQL,zabbixauthor: Chinge Yangdate: 2017-03-06 Zabbix监控PostgreSQL @(学习)[PostgreSQL,zabbix] 目录 title: Zabbix监控PostgreSQLtags: PostgreSQL,zabb...

PostGIS 快速入门(转)

原文:http://live.osgeo.org/zh/quickstart/postgis_quickstart.html   PostGIS 是 PostgreSQL 关系数据库的空间操作扩展。它为 PostgreSQL 提供了存储、查询和修改空间关系的能力。本文中 ‘PostgreSQL’ 指代基本的关系数据库功能,而 ‘PostGIS’ 指代扩展的...