Linux安装翻译软件StarDict的步骤是怎样的
Linux安装翻译软件StarDict的步骤如下:
1.下载软件包
从官网下载软件包,下载地址为:http://www.stardict.org/download.php?op=tarball&id=2556
2.解压软件包
将下载的软件包解压到指定目录,例如/usr/local/stardict/
3.安装依赖软件包
安装依赖软件包,执行命令:
yum install gtk+-devel.i686 glib2-devel.i686 libxml2-devel.i686 atk-devel.i686
4.编译安装软件
进入软件目录,执行命令:
./configure
如果显示以下内容,则表示配置成功:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
configure: checking for GLib - version >= 2.10.0... no
*** Could not run GLib test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLib or finding the wrong
*** version of GLib. If it is not finding GLib, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
configure: error:
*** GLib 2.10.0 or better is required. The latest version of
*** GLib is always available from ftp://ftp.gtk.org/.
如果出现以上错误,则表示缺少依赖库,执行命令:
yum install glib2-devel
重新执行编译安装命令:
./configure
执行命令:
make
执行命令:
make install
5.安装词典
从官网下载词典,下载地址为:http://abloz.com/huzheng/stardict-dic/zh_CN/
将下载的词典解压到指定目录,例如/usr/local/stardict/dic/
6.启动软件
运行软件,执行命令:
stardict
可以看到软件界面如下图所示:
相关文章