centos65安裝pg935時報錯: jade: Command not found


centos65安裝pg935時報錯:  jade: Command not found

1
[root@pghost1 postgresql-9.3.5]# ./configure --prefix=/opt/pgsql9.3.5 --with-pgport=1949 --with-perl --with-tcl --with-python --with-openssl --with-pam --without-ldap --with-libxml --with-libxslt --enable-thread-safety --with-wal-blocksize=8 --with-blocksize=8 && gmake world
...
gmake[3]: jade: Command not found
gmake[3]: *** [HTML.index] Error 127
gmake[3]: Leaving directory `/root/backup/postgresql-9.3.5/doc/src/sgml'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/root/backup/postgresql-9.3.5/doc/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/root/backup/postgresql-9.3.5/doc'
gmake: *** [world-doc-recurse] Error 2
[root@pghost1 postgresql-9.3.5]#

2
網上又說是copy安裝文件時用戶切換引起的,主要是文件歸屬和權限問題

我的過程應該沒有問題,還是如下,繼續,還是同樣的錯
[root@pghost1 postgresql-9.3.5]# chown -R root:root postgresql-9.3.5/

3
顯然是配置pg相關文檔時出現的問題,分別加上--with-no-docs和--with-no-html-docs繼續,結果錯誤依舊

增加--with-no-docs
./configure --prefix=/opt/pgsql9.3.5 --with-pgport=1949 --with-perl --with-tcl --with-python --with-openssl --with-pam --without-ldap --with-libxml --with-libxslt --enable-thread-safety --with-wal-blocksize=8 --with-blocksize=8 --with-no-docs && gmake world

4
試了一把以前裝過的pg934,問題依舊,而這次的環境虛擬機是新裝的,問題留待以後確認

5
查找jade相關包並安裝
yum search jade
[root@pghost1 backup]# yum -y install openjade.x86_64

6
再次configure問題依舊

7
yum -y install jadetex.noarch
yum -y install docbook-dtds.noarch

8
繼續配置,報如下錯誤:
ERROR: `collateindex.pl' is missing on your system.
***
gmake[3]: *** [bookindex.sgml] Error 1
gmake[3]: Leaving directory `/root/backup/postgresql-9.3.5/doc/src/sgml'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/root/backup/postgresql-9.3.5/doc/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/root/backup/postgresql-9.3.5/doc'
gmake: *** [world-doc-recurse] Error 2
[root@pghost1 postgresql-9.3.5]#

9
 yum -y install docbook*

10
繼續終於成功,看到了期望結果:

cc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fpic -shared -o pgxml.so xpath.o xslt_proc.o -L../../src/port -L../../src/common -Wl,--as-needed -Wl,-rpath,'/opt/pgsql9.3.5/lib',--enable-new-dtags  -lxslt -lxml2
gmake[2]: Leaving directory `/root/backup/postgresql-9.3.5/contrib/xml2'
gmake[1]: Leaving directory `/root/backup/postgresql-9.3.5/contrib'
PostgreSQL, contrib, and documentation successfully made. Ready to install.
[root@pghost1 postgresql-9.3.5]#

11
後續操作正常
總結一下就是如下就可以了。
 yum -y install openjade.x86_64
 yum -y install jadetex.noarch
 yum -y install docbook*

參考(下面這兩個參考沒有直接作用,可以對理解提供信息):
http://grokbase.com/t/postgresql/pgsql-bugs/102rqvevbv/postgresql-9-0alpha-jade-required
http://www.postgresql.org/docs/7.3/static/doc-build.html




-----------------

轉載請著明出處:
blog.csdn.net/beiigang

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章