postgresql原始碼安裝man的內容

panpong發表於2017-02-04

pg原始碼安裝man的內容

當原始碼安裝pg時,如果沒有安裝doc內容,則手動安裝一次:

[root@oem10g ~]# cd postgresql-9.4.1/doc/

[root@oem10g doc]# make

make -C src all

make[1]: Entering directory `/root/postgresql-9.4.1/doc/src'

make -C sgml all

make[2]: Entering directory `/root/postgresql-9.4.1/doc/src/sgml'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/root/postgresql-9.4.1/doc/src/sgml'

make[1]: Leaving directory `/root/postgresql-9.4.1/doc/src'

[root@oem10g doc]# make install

make -C src install

make[1]: Entering directory `/root/postgresql-9.4.1/doc/src'

make -C sgml install

make[2]: Entering directory `/root/postgresql-9.4.1/doc/src/sgml'

/bin/mkdir -p '/usr/local/pgsql/share/doc/'/html '/usr/local/pgsql/share/man'/man1 '/usr/local/pgsql/share/man'/man3 '/usr/local/pgsql/share/man'/man7

cp -R `for f in ./html; do test -r $f && echo $f && break; done` '/usr/local/pgsql/share/doc/'

cp -R `for f in ./man1; do test -r $f && echo $f && break; done` `for f in ./man3; do test -r $f && echo $f && break; done` `for f in ./man7; do test -r $f && echo $f && break; done` '/usr/local/pgsql/share/man'

make[2]: Leaving directory `/root/postgresql-9.4.1/doc/src/sgml'

make[1]: Leaving directory `/root/postgresql-9.4.1/doc/src'

安裝完成後,man的內容在/usr/local/pgsql/share/man下,然後再修改/etc/man.config,增加MANPATH行;

#

# This file is also read by man in order to find how to call nroff, less, etc.,

# and to determine the correspondence between extensions and decompressors.

#

# MANBIN                /usr/local/bin/man

#

# Every automatically generated MANPATH includes these fields

#

MANPATH /usr/man

MANPATH /usr/share/man

MANPATH /usr/local/man

MANPATH /usr/local/share/man

MANPATH /usr/X11R6/man

MANPATH /usr/local/pgsql/share/man

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16976507/viewspace-2133053/,如需轉載,請註明出處,否則將追究法律責任。

相關文章