LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 816|回复: 5

[求助]安装stardict出错,哪位高手能帮忙看看么?

[复制链接]
发表于 2006-1-9 14:29:35 | 显示全部楼层 |阅读模式
我的系统是FC3,内核是2.6.9
我开始的时候安装了stardict2.4.5,没有问题,但是在网上找不到2.4.5的词典,大都是2.4.2的,所以我将安装在/usr/share/stardici的目录直接删除了,然后在编译2.4.2的时候出错,下面是编译时的出错信息:
make  all-recursive
make[1]: Entering directory `/root/stardict-2.4.2'
Making all in src
make[2]: Entering directory `/root/stardict-2.4.2/src'
Making all in pixmaps
make[3]: Entering directory `/root/stardict-2.4.2/src/pixmaps'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/stardict-2.4.2/src/pixmaps'
Making all in sounds
make[3]: Entering directory `/root/stardict-2.4.2/src/sounds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/stardict-2.4.2/src/sounds'
Making all in tools
make[3]: Entering directory `/root/stardict-2.4.2/src/tools'
make[4]: Entering directory `/root/stardict-2.4.2/src/tools'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/stardict-2.4.2/src/tools'
make[3]: Leaving directory `/root/stardict-2.4.2/src/tools'
Making all in win32
make[3]: Entering directory `/root/stardict-2.4.2/src/win32'
Making all in nsis
make[4]: Entering directory `/root/stardict-2.4.2/src/win32/nsis'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/stardict-2.4.2/src/win32/nsis'
make[4]: Entering directory `/root/stardict-2.4.2/src/win32'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/stardict-2.4.2/src/win32'
make[3]: Leaving directory `/root/stardict-2.4.2/src/win32'
make[3]: Entering directory `/root/stardict-2.4.2/src'
source='stardict.cpp' object='stardict.o' libtool=no \
depfile='.deps/stardict.Po' tmpdepfile='.deps/stardict.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall  -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config -I/usr/include/libxml2   -DDATADIR=\""/usr/local/share"\" -DGNOME_ICONDIR=\""/usr/local/share/pixmaps"\" -DSTARDICT_LOCALEDIR=\""/usr/local/share/locale"\" -DSTARDICT_DATA_DIR=\""/usr/local/share/stardict"\" -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED  -I/usr/X11R6/include  -g -O2 -c -o stardict.o `test -f 'stardict.cpp' || echo './'`stardict.cpp
In file included from stardict.h:27,
                 from stardict.cpp:35:
prefsdlg.h:42: error: `GtkOptionMenu' has not been declared
prefsdlg.h:42: error: ISO C++ forbids declaration of `option_menu' with no type
stardict.cpp: In static member function `static gboolean AppCore:n_window_state_event(GtkWidget*, GdkEventWindowState*, AppCore*)':
stardict.cpp:255: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp:255: error: (Each undeclared identifier is reported only once for each function it appears in.)
stardict.cpp: In static member function `static gboolean AppCore::vKeyPressReleaseCallback(GtkWidget*, GdkEventKey*, AppCore*)':
stardict.cpp:334: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In member function `void AppCore::TopWinEnterWord(const gchar*)':
stardict.cpp:1065: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In member function `void AppCore:istClick(const gchar*)':
stardict.cpp:1148: error: `GTK_COMBO' undeclared (first use this function)
stardict.cpp: In function `gint save_yourself_cb(GnomeClient*, gint, GnomeRestartStyle, gint, GnomeInteractStyle, gint, void*)':
stardict.cpp:1457: error: `GTK_COMBO' undeclared (first use this function)
make[3]: *** [stardict.o] Error 1
make[3]: Leaving directory `/root/stardict-2.4.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/stardict-2.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/stardict-2.4.2'
make: *** [all] Error 2

我是个新手,哪位大大能告诉我是什么问题,能解决么?
发表于 2006-1-9 21:06:56 | 显示全部楼层
2.4.5可以用2.4.2的词典的。

rpm包全在这儿(包括语音引擎):

http://stardict.sourceforge.net/index.php

http://stardict.sourceforge.net/Dictionaries_zh_CN.php
回复 支持 反对

使用道具 举报

发表于 2006-1-10 05:34:00 | 显示全部楼层
你装了所有需要的包没?

你的gcc是什么版本?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-10 10:59:12 | 显示全部楼层
Post by ogog
2.4.5可以用2.4.2的词典的。

rpm包全在这儿(包括语音引擎):

http://stardict.sourceforge.net/index.php

http://stardict.sourceforge.net/Dictionaries_zh_CN.php



我是在这里下载的,但是安装rpm包的时候报错,如下:
[color="Blue"][root@MyLaptop Downloads]# rpm -ivh stardict-langdao-ec-gb-2.4.2-1.noarch.rpm
error: Failed dependencies:
        stardict >= 2.4.2 is needed by stardict-langdao-ec-gb-2.4.2-1.noarch
[root@MyLaptop Downloads]#

我把tarball解压到/usr/share/stardict/dic/目录下,共有三个文件
oxford-gb.dict.dz
oxford-gb.idx
oxford-gb.ifo
但是启动2.4.5时,告诉我
Warning! No dictionary is loaded.
Please go to StarDict's website and download some dictionaries:
http://stardict.sourceforge.net
没有找到字典。
另外,我的gcc相关包的版本是
libgcc-3.4.2-6.fc3
gcc-g77-3.4.2-6.fc3
gcc-c++-3.4.2-6.fc3
gcc-3.4.2-6.fc3
有啥问题么?
还有,我原来是直接删除的文件夹,会不会有什么问题阿?为什么原来能找到treedict,但是现在为什么找不到了。
而且我用root用户运行stardict时,显示错误如下
[color="Blue"](stardict:12277): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
** Message: Time of loading all dictionaries: 0.000 sec

大大帮帮忙,谢谢先!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-10 11:39:18 | 显示全部楼层
Post by 终极幻想
你装了所有需要的包没?

你的gcc是什么版本?

我的gcc相关包的版本是
[color="Blue"]libgcc-3.4.2-6.fc3
gcc-g77-3.4.2-6.fc3
gcc-c++-3.4.2-6.fc3
gcc-3.4.2-6.fc3
不知道有没有什么冲突阿?
回复 支持 反对

使用道具 举报

发表于 2006-1-10 19:24:04 | 显示全部楼层
Post by Muses
[color="Blue"][root@MyLaptop Downloads]# rpm -ivh stardict-langdao-ec-gb-2.4.2-1.noarch.rpm
error: Failed dependencies:
        stardict >= 2.4.2 is needed by stardict-langdao-ec-gb-2.4.2-1.noarch
[root@MyLaptop Downloads]#


rpm的话,要先装了stardict,才能装词典,那个stardict 是2.4.5的,先装上。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表