问题
编译 PostgreSQL 时第一次使用 make world
命令,报错 ERROR: collateindex.pl is missing on your system.
,看起来是缺乏文档输出相关的库文件.
解决方法
到官方网站查了一下 Installation on Fedora, RHEL, and Derivatives,切到 root 用户把文档编译相关的包全安装了一遍 yum install docbook-dtds docbook-style-xsl fop libxslt opensp
。
重新执行 make world
命令,发现还是报相同的错误,反复几次突然想起来需要重新执行 ./configure
,官网也有相应提示,需要以下检查都通过才可。我的一个机器这样就完美解决问题了。
以下 check 信息摘自官网:
checking for onsgmls... onsgmls checking for DocBook V4.2... yes checking for dbtoepub... dbtoepub checking for xmllint... xmllint checking for xsltproc... xsltproc checking for osx... osx checking for fop... fop
额外
不过在另一台 CentOS 机器上还是不行,依然找不到 collateindex.pl
,折腾了一下发现安装 yum install docbook-utils
后即可。
以下 check 信息取自该 CentOS 机器(基于 PostgreSQL 9):
checking for onsgmls... onsgmls checking for openjade... openjade checking for DocBook V4.2... yes checking for DocBook stylesheets... /usr/share/sgml/docbook/dsssl-stylesheets checking for collateindex.pl... /bin/collateindex.pl checking for dbtoepub... no checking for xmllint... xmllint checking for xsltproc... xsltproc checking for osx... osx
分类:PostgreSQL