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]#