PostgreSQL ./configure问题

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++  
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值