zoukankan      html  css  js  c++  java
  • make: pg_config: Command not found

    报错:

    [root@localhost c]# make
    make: pg_config: Command not found
    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 from cached 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                              816 k
    Installing for dependencies:
     postgresql                                    x86_64                              8.4.20-6.el6                                base                              2.6 M
     postgresql-libs                               x86_64                              8.4.20-6.el6                                base                              202 k
    
    Transaction Summary
    =======================================================================================================================================================================
    Install       3 Package(s)
    
    Total download size: 3.6 M
    Installed size: 18 M
    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:01     
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : postgresql-libs-8.4.20-6.el6.x86_64                                                                                                                 1/3 
      Installing : postgresql-8.4.20-6.el6.x86_64                                                                                                                      2/3 
      Installing : postgresql-devel-8.4.20-6.el6.x86_64                                                                                                                3/3 
      Verifying  : postgresql-devel-8.4.20-6.el6.x86_64                                                                                                                1/3 
      Verifying  : postgresql-libs-8.4.20-6.el6.x86_64                                                                                                                 2/3 
      Verifying  : 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]# 
  • 相关阅读:
    怎样评价海贼王中艾斯的死?
    interleaving-string
    打败微信的将是怎么样的一款产品?
    javascript实例——文本特效篇(包含3个小例子)
    javascript实例——时间日期篇(包含5个实例)
    【转】Js获取当前日期时间及其它操作
    【转】外国朋友出的js题目,你能对几道
    【转】30+有用的CSS代码片段
    php的ajax简单实例
    Border属性的各种变化
  • 原文地址:https://www.cnblogs.com/RaymondBlog/p/6527786.html
Copyright © 2011-2022 走看看