Stardict Installation Notes for Solaris 10

发表于:2007-06-08来源:作者:点击数: 标签:
Stardict Installation Notes for Solaris 10 BUPT-CS Perry unix ecat@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 th
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


原文转自:http://www.ltesting.net