免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3959 | 回复: 7
打印 上一主题 下一主题

Stardict Installation Notes for Solaris 10 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-06-15 13:32 |只看该作者 |倒序浏览
Stardict Installation Notes for Solaris 10

BUPT-CS Perry  < unixecat@sina.com >;

=========

Basic information of my system:
SunOS XXXXX 5.10 s10_72 sun4u sparc SUNW,Sun-Blade-100

Stardict version:Stardict-2.4.4

1.
Stardict-2.4.4 requires the installation of gcc,make ,gawk.
software download URL:
http://www.sunfreeware.com/indexsparc10.html
gawk-3.1.4
gcc-3.3.2  (This gcc package requires the installation of libiconv.)
libiconv-1.8
make-3.80

install:
gunzip a-sol10-sparc-local.gz
pkgadd -d a-sol10-sparc-local


2.
Note that this version of gcc was created on build 60 of Solaris 10. If you are using a higher version, you will need to redo some of the header files. This is done by doing the following steps:

cd /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/install-tools/

Put the line SHELL=/bin/sh on the first line of the mkheaders.conf
file.  Then run

./mkheaders

This will correct some files and make the build 60 gcc usable on
higher builds.  I have tested this on build 72 and it works fine.


[comment]
if you have not done it, when you run 'make'(compile stardict),there are some error messages like this:
/usr/include/sys/siginfo.h:259: error: 'ctid_t' is used as a type, but is not
   defined as a type.
/usr/include/sys/siginfo.h:390: error: 'ctid_t' is used as a type, but is not
   defined as a type.

3.
bunzip2 -dc stardict-2.4.4.tar.bz2 |tar xvf -
./configure --prefix=/usr --sysconfdir=/etc  --mandir=/usr/share/man

4.
I believe -mt is not a supported with GNU compilers (-mt works with Sun Studio compilers).  you should edit the GNUmakefile to replace -mt with g++ equivalent option, -pthreads.

Makefiles include:

./po/Makefile
./src/tools/Makefile
./src/win32/nsis/Makefile
./src/win32/Makefile
./src/sounds/Makefile
./src/pixmaps/Makefile
./src/Makefile
./data/Makefile
./help/C/Makefile
./help/mk/Makefile
./help/ru/Makefile
./help/uk/Makefile
./help/zh_CN/Makefile
./help/zh_TW/Makefile
./help/Makefile
./pixmaps/Makefile
./Makefile

[comment]
if you have not done it, when you run 'make'(compile stardict),there are some error messages like this:
cc1plus: error: invalid option `t'

5.
export PATH=/usr/sbin:/usr/bin:/usr/openwin/bin:/bin:/usr/ucb:/usr/local/bin
(if gcc,make are installed in /usr/local/bin)
make
make install

bunzip2 -dc stardict-oxford-gb-2.4.2.tar.bz2 |tar xvf -



6.
install tarball dictionaries:
bunzip2 -dc a.tar.bz2 | tar xvf -
mv a /usr/share/stardict/dic


install tarball tree dictionaries:
bunzip2 -dc a.tar.bz2 | tar xvf -
mv a /usr/share/stardict/treedict


install WyabdcRealPeopleTTS:
bunzip2 -dc WyabdcRealPeopleTTS.tar.bz2 | tar xvf -
mv WyabdcRealPeopleTTS  /usr/share/WyabdcRealPeopleTTS

setting:
stardict ->; perferences ->; floating window->; options ->; pronouce the word when pop up.
then restart stardict, TTS will work.

7.
Stardict download URL:

Main program:
http://prdownloads.sourceforge.net/stardict/stardict-2.4.4.tar.bz2?download
Dictionaries:
http://stardict.sourceforge.net/Dictionaries.php
TreeDictionaries:
http://stardict.sourceforge.net/TreeDictionaries.php
WyabdcRealPeopleTTS:
http://prdownloads.sourceforge.net/stardict/WyabdcRealPeopleTTS.tar.bz2?download

8.
Who to thank:

Melvin

论坛徽章:
0
2 [报告]
发表于 2005-06-15 14:35 |只看该作者

Stardict Installation Notes for Solaris 10

原帖由 "Unixecat" 发表:

if you have not done it, when you run 'make'(compile stardict),there are some error messages like this:
cc1plus: error: invalid option `t'

5.
export PATH=/usr/sbin:/usr/bin:/usr/openwin/bin:/bi..........



不错,stardict确实在我的solaris x86上很好用,
某些地方,他的词库甚至比金山词霸强,尤其计算机术语

论坛徽章:
0
3 [报告]
发表于 2005-06-15 15:50 |只看该作者

Stardict Installation Notes for Solaris 10

我在solaris8 上编译时出现了这个问题,时什么员应呢?
bash-2.03# ./configure --prefix=/usr --sysconfdir=/etc  --mandir=/usr/share/man
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gconftool-2... no
checking for intltool >;= 0.22... 0.27.2 found
checking for perl... /usr/bin/perl
checking for XML:arser... configure: error: XML:arser perl module is required for intltool

论坛徽章:
0
4 [报告]
发表于 2005-06-15 17:57 |只看该作者

Stardict Installation Notes for Solaris 10

You need to make sure that you have the right variant of the xml-parser-pm package to match the Perl version for your system. For example, if you're on Panther you should have xml-parser-pm581 rather than xml-parser-pm560 (you may also have the xml-parser-pm placeholder), since you have Perl-5.8.1 rather than Perl-5.6.0. If you're on Jaguar, and are using the default system Perl version, you'll have the pm560 variant, and if you've installed Perl 5.8.0 you may have the pm580 variant.

from: http://fink.sourceforge.net/faq/comp-general.php#xml-parser

论坛徽章:
0
5 [报告]
发表于 2006-04-12 11:12 |只看该作者

帮忙 我这里make的时候提示错误如下:

make
make  all-recursive
make[1]: Entering directory `/stardic/stardict-2.4.6'
Making all in src
make[2]: Entering directory `/stardic/stardict-2.4.6/src'
Making all in pixmaps
make[3]: Entering directory `/stardic/stardict-2.4.6/src/pixmaps'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/stardic/stardict-2.4.6/src/pixmaps'
Making all in sounds
make[3]: Entering directory `/stardic/stardict-2.4.6/src/sounds'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/stardic/stardict-2.4.6/src/sounds'
Making all in tools
make[3]: Entering directory `/stardic/stardict-2.4.6/src/tools'
make[4]: Entering directory `/stardic/stardict-2.4.6/src/tools'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -DORBIT2=1 g++ -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/sfw/include/freetype2 -I/usr/sfw/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/openwin/include -I/usr/include/libxml2      -g -O2 -MT pydict2dic.o -MD -MP -MF ".deps/pydict2dic.Tpo" -c -o pydict2dic.o pydict2dic.c; \
then mv -f ".deps/pydict2dic.Tpo" ".deps/pydict2dic.Po"; else rm -f ".deps/pydict2dic.Tpo"; exit 1; fi
gcc: cannot specify -o with -c or -S and multiple compilations
make[4]: *** [pydict2dic.o] Error 1
make[4]: Leaving directory `/stardic/stardict-2.4.6/src/tools'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/stardic/stardict-2.4.6/src/tools'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/stardic/stardict-2.4.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/stardic/stardict-2.4.6'
make: *** [all] Error 2


请问大侠 您知道怎么解决吗?

谢谢

论坛徽章:
0
6 [报告]
发表于 2006-04-12 14:05 |只看该作者

盼回复

楼上的问题 没有人清楚怎么回事吗
焦急等待中

论坛徽章:
0
7 [报告]
发表于 2006-04-12 15:44 |只看该作者
原帖由 fat_cat 于 2006-4-12 14:05 发表
楼上的问题 没有人清楚怎么回事吗
焦急等待中



http://wiki.gceclub.sun.com.cn/i ... 8.E5.90.97.EF.BC.9F

论坛徽章:
0
8 [报告]
发表于 2006-04-12 16:02 |只看该作者
我的solaris 10本身就带了一个startdict...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP