CentOS 6.5安裝PostgreSQL9.3.5時報錯: jade: Command not found

來源:互聯網
上載者:User

CentOS 6.5安裝PostgreSQL9.3.5時報錯: jade: Command not found

CentOS 6.5安裝PostgreSQL9.3.5時報錯: 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*

------------------------------------華麗麗的分割線------------------------------------

CentOS 6.3環境下yum安裝PostgreSQL 9.3

PostgreSQL緩衝詳述

Windows平台編譯 PostgreSQL

Ubuntu下LAPP(Linux+Apache+PostgreSQL+PHP)環境的配置與安裝

Ubuntu上的phppgAdmin安裝及配置

CentOS平台下安裝PostgreSQL9.3

PostgreSQL配置Streaming Replication叢集

如何在CentOS 7/6.5/6.4 下安裝PostgreSQL 9.3 與 phpPgAdmin 

------------------------------------華麗麗的分割線------------------------------------

PostgreSQL 的詳細介紹:請點這裡
PostgreSQL 的:請點這裡

本文永久更新連結地址:

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.