2006年9月7日 星期四

搬開 gnome 路上的大石頭

本來 kde 和 gnome 兩個桌面是在幾台機器上挑著用,反正兩個都作得還有點半吊子,用起來都一樣不順手,就兩個都用用看。用了一陣子,仔細比較起來,gnome 在 ui 的操作性上還是勝出一點點。所以打算把所有的桌面都換成 gnome 。但是在幾台機器上 build gnome2 port 的時候,卻會在半途卡住。卡住的是 scrollkeeper 。configure 吵說找不到xml scheme:

checking for --with-omfdirs... /usr/X11R6/share/gnome/omf
checking for xml2-config... /usr/local/bin/xml2-config
checking libxml2 version... 2.6.26
checking for xslt-config... /usr/local/bin/xslt-config
checking which XML catalog to use... /usr/local/share/xml/catalog.ports
checking for DocBook XML DTD... configure: error: not found. Make sure you have the DocBook DTD installed and ensure that it is registered in /usr/local/share/xml/catalog.ports.
===> Script "configure" failed unexpectedly.
Please run the gnomelogalyzer, available from
"http://www.freebsd.org/gnome/gnomelogalyzer.sh", which will diagnose the
problem and suggest a solution. If - and only if - the gnomelogalyzer cannot
solve the problem, report the build failure to the FreeBSD GNOME team at
gnome@FreeBSD.org, and attach (a)
"/usr/ports/textproc/scrollkeeper/work/scrollkeeper-0.3.14/config.log", (b)
the output of the failed make command, and (c) the gnomelogalyzer output.
Also, it might be a good idea to provide an overview of all packages installed
on your system (i.e. an `ls /var/db/pkg`). Put your attachment up on any
website, copy-and-paste into http://freebsd-gnome.pastebin.com, or use
send-pr(1) with the attachment. Try to avoid sending any attachments to the
mailing list (gnome@FreeBSD.org), because attachments sent to FreeBSD mailing
lists are usually discarded by the mailing list software.
*** Error code 1

Stop in /usr/ports/textproc/scrollkeeper.
*** Error code 1

Stop in /usr/ports/textproc/gnome-doc-utils.
*** Error code 1

Stop in /usr/ports/sysutils/gnome-system-tools.
*** Error code 1

Stop in /usr/ports/x11/gnome-applets.
*** Error code 1

Stop in /usr/ports/x11/gnome2-lite.


把 docbook 和 xmlcatmgr 相關全部砍光光再重來一次也沒辦法。Google 搜尋也找不到什麼有用的東西,於是就這麼擺著,沒辦法裝 gnome 的機器就繼續用 kde。

昨天心血來潮想再看看,於是看看 xmlcatmgr 裝了什麼東西。catalog 檔案 /usr/local/share/xml/catalog.ports 並不在安裝檔案列表裡,似乎是安裝其他 docbook ports 時才產生出來的,但是內容是空的。大概是因此 scrollkeeper 才吵著說找不到可用的 xml 。

剛剛突然想到,如果這個檔案是空的,那是不是應該砍掉呢? /usr/local/share/xml/catalog 會 include 它,而 catalog 似乎應該是個 xml 檔案。如果這樣,大概就是create catalog 時因為檔案已經存在,所以沒有蓋掉它;但又因為內容不是 xml, 所以無法更新它。

這麼一想,把 xmlcatmgr 砍掉,刪掉 /usr/local/share/xml/catalog.ports, 再重新 make install 一次。果然就可以了。這空的 catalog.ports, 不知是哪個東西的遺毒啊。

沒有留言:

張貼留言