Windows 10 Pro + WSL + Ubuntu で PostgreSQL 10.3 のドキュメントを作成してみる

Windows 10 Pro + WSL + UbuntuPostgreSQL 10.3 のドキュメントを作成してみる
 
全文検索用の評価用のデータもかねて PostsgreSQL のドキュメントを作成してみる(そこか
※ドキュメントの作成に最低限必要なパッケージのみをインストールしているので
 本体のコンパイルには ./configure --help の内容を確認しながら、必要な
 オプションやパッケージを追加してください
※エラーが発生した場合、ubuntu パッケージ名で検索して追加 かなあ・・
※ # apt-cache search キーワード | grep キーワード もありかな
 
参考にしたサイトはこちら
pgsql-jp/jpug-doc
ドキュメントビルド手順
msgfmt エラーの解消
PostgreSQL日本語マニュアルについて
 
WSL + Ubuntu はこちら
Windows 10 Pro + WSL + Ubuntu を使ってみる
 
pgsql-jp/jpug-doc
のDownloaded ZIP よりDL後 適当なフォルダに解凍する
※自分は D:\doc\jpug-doc-doc_ja_10 と配置
 
以降は Ubuntu上で実行する
・ドキュメントビルド手順 に従い、以下のパッケージを追加する
※エラーが発生したパッケージも追加
# apt-get install libreadline6-dev
# apt-get install zlib1g-dev
# apt-get install flex
# apt-get install bison
# apt-get install libxslt-dev
# apt-get install jade
# apt-get install docbook
# apt-get install docbook-dsssl
# apt-get install docbook-xml
# apt-get install docbook-xsl
# apt-get install gettext
# apt-get install sp <- ERROR: `osx' is missing on your system.
# apt-get install libxml2-utils
# apt-get install xsltproc
# which collateindex.pl
/usr/bin/collateindex.pl
 
# cd /mnt/d/doc/jpug-doc-doc_ja_10
Ubuntuからはこう見えるんですね # df で確認
# ./configure --enable-nls --with-libxml --with-libxslt
※正常に終了することを確認


# make html
make -C doc html
make[1]: Entering directory '/mnt/d/doc/jpug-doc-doc_ja_10/doc'
make -C src html
make[2]: Entering directory '/mnt/d/doc/jpug-doc-doc_ja_10/doc/src'
make -C sgml html
make[3]: Entering directory '/mnt/d/doc/jpug-doc-doc_ja_10/doc/src/sgml'
SP_CHARSET_FIXED=1 SP_ENCODING=UTF-8 \
/bin/sh ../../../config/missing
osx -wall -wno-unused-param -wno-empty -wfully-tagged -wnet -D . -D . -x
comment -x lower postgres.sgml > postgres.xml.tmp
***
ERROR: `osx' is missing on your system.
***
が発生して、エラー終了する <-パッケージ不足
D:\doc\jpug-doc-doc_ja_10\doc\src\sgml\Makefile
の46-48行目 が原因なのかな?(現在調査中・・・・)
ifndef OSX
OSX = $(missing) osx
endif
 
不足していたパッケージを追加して 無事作成終了
$ make html
を実行すると
D:\doc\jpug-doc-doc_ja_10\doc\src\sgml\html 以下に作成されることを確認