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

來源:互聯網
上載者:User

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

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.