PostgreSQL ./configure问题
[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
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
15. 找到了,就安装,我是64位的,安装第二个
16. [root@localhost postgresql-9.3.5]# yum install -y systemtap-sdt-devel.x86_64
2. 问题2:
3. 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 .).
4. BEGIN failed--compilation aborted.
5. no
6. configure: error: could not determine flags for linking embedded Perl.
7. This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
8. installed.
9. 解决方法:
10. yum install perl-ExtUtils-Embed -y
2. 问题3:
3. configure: error: could not determine flags for linking embedded Perl.
4. This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
5. installed.
6. 解决方法:
7. yum install perl-ExtUtils-Embed
9. 问题4:
10. configure: error: readline library not found
11. If you have readline already installed, see config.log for details on the
12. failure. It is possible the compiler isn't looking in the proper directory.
13. Use --without-readline to disable readline support.
15. 解决方法:
16. yum install readline readline-devel
18. 问题5:
19. checking for inflate in -lz... no
20. configure: error: zlib library not found
21. If you have zlib already installed, see config.log for details on the
22. failure. It is possible the compiler isn't looking in the proper directory.
23. Use --without-zlib to disable zlib support.
24. 解决方法:
25. yum install zlib zlib-devel
28. 问题6:
29. checking for CRYPTO_new_ex_data in -lcrypto... no
30. configure: error: library 'crypto' is required for OpenSSL
31. 解决方法:
32. yum install openssl openssl-devel
34. 问题7:
35. checking for pam_start in -lpam... no
36. configure: error: library 'pam' is required for PAM
37. 解决方法:
38. yum install pam pam-devel
40. 问题8:
41. checking for xmlSaveToBuffer in -lxml2... no
42. configure: error: library 'xml2' (version >= 2.6.23) is required for XML support
43. 解决方法:
44. yum install libxml2 libxml2-devel
46. 问题9:
47. checking for xsltCleanupGlobals in -lxslt... no
48. configure: error: library 'xslt' is required for XSLT support
49. 解决方法:
50. yum install libxslt libxslt-devel
53. 问题10:
54. configure: error: Tcl shell not found
55. 解决方法:
56. yum install tcl tcl-devel
59. 问题11:
60. checking for ldap.h... no
61. configure: error: header file is required for LDAP
62. 解决方法:
63. yum install openldap openldap-devel
65. 问题12:
66. checking for Python.h... no
67. configure: error: header file <Python.h> is required for Python
68. 解决方法:
69. yum install python python-devel
71. 问题13:
72. Error when bootstrapping CMake:
73. Cannot find appropriate C++ compiler on this system.
74. Please specify one using environment variable CXX.
75. See cmake_bootstrap.log for compilers attempted.
76. 解决方法:
77. yum install gcc-c++