# zypper in stardict
就可以安裝了
但是一執行就會崩潰
由終端機執行可看見訊息:
$ stardict
已載入 Espeak 擴充元件。
Dict.cn plug-in loaded.
Spelling plugin loaded.
已載入 Man 擴充元件。
HTML data parsing plug-in loaded.
WordNet dict rendering plug-in loaded.
QQWry plug-in loaded.
Wiki data parsing plug-in loaded.
WordNet data parsing plug-in loaded.
XDXF data parsing plug-in loaded.
PowerWord data parsing plug-in loaded.
[message] Verifying dictionary '/usr/share/stardict/dic/stardict-dictd_www.mova.org_slovnyk_ru-en-2.4.2/dictd_www.mova.org_slovnyk_ru-en.ifo'...
[message] Loading index file: '/usr/share/stardict/dic/stardict-dictd_www.mova.org_slovnyk_ru-en-2.4.2/dictd_www.mova.org_slovnyk_ru-en.idx'...
[message] Loading dictionary file: '/usr/share/stardict/dic/stardict-dictd_www.mova.org_slovnyk_ru-en-2.4.2/dictd_www.mova.org_slovnyk_ru-en.dict.dz'...
[message] Dictionary '/usr/share/stardict/dic/stardict-dictd_www.mova.org_slovnyk_ru-en-2.4.2/dictd_www.mova.org_slovnyk_ru-en.ifo'. Verification result: OK.
[message] Verifying dictionary '/usr/share/stardict/dic/engcom/engcom.ifo'...
[message] Loading index file: '/usr/share/stardict/dic/engcom/engcom.idx.gz'...
[message] Loading dictionary file: '/usr/share/stardict/dic/engcom/engcom.dict.dz'...
[message] Dictionary '/usr/share/stardict/dic/engcom/engcom.ifo'. Verification result: OK.
[message] Verifying dictionary '/usr/share/stardict/dic/stardict-dict/stardict-dict.ifo'...
[message] Resource storage loaded. Type - files.
[message] Loading index file: '/usr/share/stardict/dic/stardict-dict/stardict-dict.idx'...
[message] Loading synonyms file: '/usr/share/stardict/dic/stardict-dict/stardict-dict.syn'...
[message] Loading dictionary file: '/usr/share/stardict/dic/stardict-dict/stardict-dict.dict.dz'...
[message] Dictionary '/usr/share/stardict/dic/stardict-dict/stardict-dict.ifo'. Verification result: OK.
bookname: StarDict dictionary, wordcount 9
bookname: Англо-русский словарь Мюллера, 7-я ред., wordcount 46195
bookname: dictd_www.mova.org_slovnyk_ru-en, wordcount 55820
bookname: Современный свободный словарь компьютерных терминов., wordcount 2389
(Gdk) [critical] IA__gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed
**
ERROR:compositelookup.cpp:53:void CompositeLookup::send_net_dict_request(const string&, const string&): assertion failed: (NetDictRequests.end() == std::find(NetDictRequests.begin(), NetDictRequests.end(), request))
已經終止
最簡單的暫時解決方法就是移除 stardict_dictdotcn.so
# rm /usr/lib/stardict/plugins/stardict_dictdotcn.so
重新啟動 stardict
$ stardict
XDXF data parsing plug-in loaded.
Spelling plugin loaded.
HTML data parsing plug-in loaded.
QQWry plug-in loaded.
已載入 Man 擴充元件。
已載入 Espeak 擴充元件。
PowerWord data parsing plug-in loaded.
WordNet dict rendering plug-in loaded.
Wiki data parsing plug-in loaded.
WordNet data parsing plug-in loaded.
[message] Verifying dictionary '/usr/share/stardict/dic/stardict-langdao-ce-big5-2.4.2/langdao-ce-big5.ifo'...
[message] Loading index file: '/usr/share/stardict/dic/stardict-langdao-ce-big5-2.4.2/langdao-ce-big5.idx'...
[message] Loading dictionary file: '/usr/share/stardict/dic/stardict-langdao-ce-big5-2.4.2/langdao-ce-big5.dict.dz'...
[message] Dictionary '/usr/share/stardict/dic/stardict-langdao-ce-big5-2.4.2/langdao-ce-big5.ifo'. Verification result: OK.
[message] Verifying dictionary '/usr/share/stardict/dic/stardict-langdao-ec-big5-2.4.2/langdao-ec-big5.ifo'...
[message] Loading index file: '/usr/share/stardict/dic/stardict-langdao-ec-big5-2.4.2/langdao-ec-big5.idx'...
[message] Loading dictionary file: '/usr/share/stardict/dic/stardict-langdao-ec-big5-2.4.2/langdao-ec-big5.dict.dz'...
[message] Dictionary '/usr/share/stardict/dic/stardict-langdao-ec-big5-2.4.2/langdao-ec-big5.ifo'. Verification result: OK.
bookname: Современный свободный словарь компьютерных терминов., wordcount 2389
bookname: StarDict dictionary, wordcount 9
bookname: Англо-русский словарь Мюллера, 7-я ред., wordcount 46195
Save cache file: /usr/share/stardict/dic/stardict-langdao-ce-big5-2.4.2/langdao-ce-big5.idx.oft
bookname: 朗道漢英字典5.0, wordcount 395426
Save cache file: /usr/share/stardict/dic/stardict-langdao-ec-big5-2.4.2/langdao-ec-big5.idx.oft
bookname: 朗道英漢字典5.0, wordcount 423246
[warning] Binding 'x' failed! Already assigned.
(Gdk) [critical] IA__gdk_window_set_cursor: assertion `GDK_IS_WINDOW (window)' failed
雖然仍有錯誤訊息,但是勉強可用
後來又在 http://218.240.28.131/forum/viewtopic.php?f=5&t=946044 看到了一個 patch
試了一下,目前都無崩潰狀況,已提交 Education 和 home:opensuse_zh
您也可以在 home:swyear 找到,
執行情況如下:
$ stardict
Wiki data parsing plug-in loaded.
HTML data parsing plug-in loaded.
PowerWord data parsing plug-in loaded.
QQWry plug-in loaded.
Spelling plugin loaded.
WordNet dict rendering plug-in loaded.
已載入 Man 擴充元件。
XDXF data parsing plug-in loaded.
WordNet data parsing plug-in loaded.
Dict.cn plug-in loaded.
已載入 Espeak 擴充元件。
[message] Verifying dictionary '/usr/share/stardict/dic/stardict-dict/stardict-dict.ifo'...
[message] Resource storage loaded. Type - files.
[message] Loading index file: '/usr/share/stardict/dic/stardict-dict/stardict-dict.idx'...
[message] Loading synonyms file: '/usr/share/stardict/dic/stardict-dict/stardict-dict.syn'...
[message] Loading dictionary file: '/usr/share/stardict/dic/stardict-dict/stardict-dict.dict.dz'...
[message] Dictionary '/usr/share/stardict/dic/stardict-dict/stardict-dict.ifo'. Verification result: OK.
bookname: 朗道漢英字典5.0, wordcount 395426
bookname: 朗道英漢字典5.0, wordcount 423246
bookname: 21世紀雙語科技詞典, wordcount 809239
bookname: 21世紀英漢漢英雙向詞典, wordcount 213086
bookname: 懶蟲簡明英漢詞典, wordcount 452184
bookname: 懶蟲簡明漢英詞典, wordcount 119522
bookname: JCEDict, wordcount 19973
Save cache file: /home/ray121/.cache/stardict/stardict-dict.idx.oft
Save cache file: /home/ray121/.cache/stardict/stardict-dict.syn.oft
bookname: StarDict dictionary, wordcount 9
bookname: Современный свободный словарь компьютерных терминов., wordcount 2389
bookname: Англо-русский словарь Мюллера, 7-я ред., wordcount 46195
似乎是解決了崩潰問題