PostgreSQL 各种问题汇总

来源:互联网 发布:来电显示软件 编辑:程序博客网 时间:2024/06/05 15:31

PostgreSQL源码安装时候第一步 ./configure

[sql] view plain copy
  1. [root]# ./configure --prefix=/usr/local/postgres-9.3.5 --with-perl --with-tcl --with-python --with-openssl --with-pam --without-ldap --with-libxml --with-libxslt --enable-thread-safety --with-wal-blocksize=16 --with-blocksize=16 --enable-dtrace --enable-debug  

[sql] view plain copy
  1. 问题1:  
  2. checking for dtrace... no  
  3. configure: error: dtrace not found  
  4. 解决方法:  
  5. yum search dtrace  
  6. Loaded plugins: fastestmirror, refresh-packagekit, security  
  7. Loading mirror speeds from cached hostfile  
  8.  * base: mirrors.163.com  
  9.  * extras: mirrors.163.com  
  10.  * updates: mirrors.163.com  
  11. =============================================================================================== Matched: dtrace ===============================================================================================  
  12. systemtap-sdt-devel.i686 : Static probe support tools  
  13. systemtap-sdt-devel.x86_64 : Static probe support tools  
  14.   
  15. 找到了,就安装,我是64位的,安装第二个  
  16. [root@localhost postgresql-9.3.5]# yum install -y systemtap-sdt-devel.x86_64  
[sql] view plain copy
  1. 问题2:  
  2. checking for flags to link embedded Perl... Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).  
  3. BEGIN failed--compilation aborted.  
  4. no  
  5. configure: error: could not determine flags for linking embedded Perl.  
  6. This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not  
  7. installed.  
  8. 解决方法:  
  9. yum install perl-ExtUtils-Embed -y  
[sql] view plain copy
  1. 问题3:  
  2. configure: error: could not determine flags for linking embedded Perl.  
  3. This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not  
  4. installed.  
  5. 解决方法:  
  6. yum install perl-ExtUtils-Embed  
  7.   
  8. 问题4:  
  9. configure: error: readline library not found  
  10. If you have readline already installed, see config.log for details on the  
  11. failure. It is possible the compiler isn't looking in the proper directory.  
  12. Use --without-readline to disable readline support.  
  13.   
  14. 解决方法:  
  15. yum install readline readline-devel  
  16.   
  17. 问题5:  
  18. checking for inflate in -lz... no  
  19. configure: error: zlib library not found  
  20. If you have zlib already installed, see config.log for details on the  
  21. failure. It is possible the compiler isn't looking in the proper directory.  
  22. Use --without-zlib to disable zlib support.  
  23. 解决方法:  
  24. yum install zlib zlib-devel  
  25.   
  26.   
  27. 问题6:  
  28. checking for CRYPTO_new_ex_data in -lcrypto... no  
  29. configure: error: library 'crypto' is required for OpenSSL  
  30. 解决方法:  
  31. yum install openssl openssl-devel  
  32.   
  33. 问题7:  
  34. checking for pam_start in -lpam... no  
  35. configure: error: library 'pam' is required for PAM  
  36. 解决方法:  
  37. yum install pam pam-devel  
  38.   
  39. 问题8:  
  40. checking for xmlSaveToBuffer in -lxml2... no  
  41. configure: error: library 'xml2' (version >= 2.6.23) is required for XML support  
  42. 解决方法:  
  43. yum install libxml2 libxml2-devel  
  44.   
  45. 问题9:  
  46. checking for xsltCleanupGlobals in -lxslt... no  
  47. configure: error: library 'xslt' is required for XSLT support  
  48. 解决方法:  
  49. yum install libxslt libxslt-devel  
  50.   
  51.   
  52. 问题10:  
  53. configure: error: Tcl shell not found  
  54. 解决方法:  
  55. yum install tcl tcl-devel  
  56.   
  57.   
  58. 问题11:  
  59. checking for ldap.h... no  
  60. configure: error: header file is required for LDAP  
  61. 解决方法:  
  62. yum install openldap openldap-devel  
  63.   
  64. 问题12:  
  65. checking for Python.h... no  
  66. configure: error: header file <Python.h> is required for Python  
  67. 解决方法:  
  68. yum install python python-devel  
  69.   
  70. 问题13:  
  71. Error when bootstrapping CMake:  
  72. Cannot find appropriate C++ compiler on this system.  
  73. Please specify one using environment variable CXX.  
  74. See cmake_bootstrap.log for compilers attempted.  
  75. 解决方法:  
  76. yum install gcc-c++  
  77. checking for flags to link embedded Perl... Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).BEGIN failed--compilation aborted.# you are missing some perl libraries# install them:yum install perl-YAML* -yyum install perl-ExtUtils* -y



    checking for library containing readline... noconfigure: error: readline library not foundIf you have readline already installed, see config.log for details on thefailure.  It is possible the compiler isn't looking in the proper directory.Use --without-readline to disable readline support.# you are missing readline libraries# install them:yum install readline* -y



    checking for pam_start in -lpam... noconfigure: error: library 'pam' is required for PAM# you are missing pam libraries# install them:yum install pam-devel -y



    checking for uuid_export in -lossp-uuid... nochecking for uuid_export in -luuid... noconfigure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID# you are missing uuid libraries# install them:yum install uuid-devel -y



    checking for tclConfig.sh... noconfigure: error: file 'tclConfig.sh' is required for Tcl# you are missing tclConfig.sh# install it:yum install tcl-devel -y



    configure: error: header file <Python.h> is required for Python# you are missing Python libraries# install them:yum install python-devel -y