安装PG后通常需要make check跑一下官方的回归用例,如果想要跑通所有的官方回归用例,下列参数需要在build的时候提前指定,否则就会报类似“xml.sql:138: ERROR: unsupported XML feature
INFO:SingleRunner:DETAIL: This functionality requires the server to be built with libxml support”错误
./configure --prefix=/usr/local/pg11 --with-pgport=5432 --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 PYTHON=/usr/bin/python2.7
如果是在新装的CentOS上安装官方PG,执行./configure的时候会遇到一些错误,一般是因为缺少一些依赖包。下面是常见的一些错误及解决方案
问题1:configure: error: dtrace not found
解决方案: yum install systemtap systemtap-sdt-devel
问题2:configure: error: could not determine flags for linking embedded Perl.
This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
installed.
解决方案:yum install perl-ExtUtils-Embed -y
CentOS上安装PostgreSQL11.4的参数与问题解决

在CentOS上安装PostgreSQL11.4时,需要特定的配置参数以通过官方回归测试。文章列举了安装过程中可能遇到的问题,如dtrace缺失、Python版本冲突、XML库不足等,并提供了相应的解决方案,包括安装依赖包和使用特定的配置选项。
最低0.47元/天 解锁文章
687

被折叠的 条评论
为什么被折叠?



