编译PostgreSQL文档的环境设置

  1. 使用 ./configure 命令观察输出结果,下面列出的检查必须通过才可以编译文档
checking for onsgmls... onsgmls
checking for openjade... openjade
checking for DocBook V4.2... yes
checking for DocBook stylesheets... /usr/share/sgml/docbook/dsssl-stylesheets-1.79
checking for dbtoepub... dbtoepub
checking for xmllint... xmllint
checking for xsltproc... xsltproc
checking for osx... osx
  1. 若步骤1 里的检查未通过,则需要安装一些第三方库,以CentOS7为例,步骤如下所示
yum install docbook-dtds docbook-style-xsl fop libxslt opensp openjade
wget https://downloads.sourceforge.net/docbook/docbook-dsssl-1.79.tar.bz2
tar -xf docbook-dsssl-1.79.tar.bz2
install -v -m755 bin/collateindex.pl /usr/bin && install -v -m644 bin/collateindex.pl.1 /usr/share/man/man1 && install -v -d -m755 /usr/share/sgml/docbook/dsssl-stylesheets-1.79 && cp -v -R * /usr/share/sgml/docbook/dsssl-stylesheets-1.79 && install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat /usr/share/sgml/docbook/dsssl-stylesheets-1.79/catalog && install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat /usr/share/sgml/docbook/dsssl-stylesheets-1.79/common/catalog && install-catalog --add /etc/sgml/sgml-docbook.cat /etc/sgml/dsssl-docbook-stylesheets.cat
export DOCBOOKSTYLE=/usr/share/sgml/docbook/dsssl-stylesheets-1.79; export PATH=/usr/share/sgml/docbook/xsl-stylesheets/epub/bin:$PATH
Advertisements

分类:默认目录, PostgreSQL

Tagged as: ,

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

w

Connecting to %s