Autor Tópico: StarDic  (Lida 1867 vezes)

Offline rruella

  • Usuário Ubuntu
  • *
  • Mensagens: 1.097
    • Ver perfil
StarDic
« Online: 07 de Janeiro de 2010, 17:23 »
estou seguindo a dica do sidserra (velox) para instalar o stardic e tenho alguns erros no processo, não obtendo resultado. o que fiz errado:

rruella@rruella:~$ tar -jxvf dictconv-0.2.tar.bz2
dictconv-0.2/
dictconv-0.2/src/
dictconv-0.2/src/sdictreader.cpp
dictconv-0.2/src/sdict.cpp
dictconv-0.2/src/freedictreader.cpp
dictconv-0.2/src/sdictreader.h
dictconv-0.2/src/dictbuilder.h
dictconv-0.2/src/freedictreader.h
dictconv-0.2/src/dictreader.h
dictconv-0.2/src/sdict.h
dictconv-0.2/src/stardictbuilder.cpp
dictconv-0.2/src/CMakeLists.txt
dictconv-0.2/src/babylonreader.cpp
dictconv-0.2/src/stardict.h
dictconv-0.2/src/stardictreader.cpp
dictconv-0.2/src/babylonreader.h
dictconv-0.2/src/Makefile.am
dictconv-0.2/src/Makefile.in
dictconv-0.2/src/babylon.cpp
dictconv-0.2/src/stardictbuilder.h
dictconv-0.2/src/dictconv.cpp
dictconv-0.2/src/babylon.h
dictconv-0.2/src/stardictreader.h
dictconv-0.2/src/stardict.cpp
dictconv-0.2/src/dictdbuilder.cpp
dictconv-0.2/src/plaintextdictbuilder.h
dictconv-0.2/src/plaintextdictbuilder.cpp
dictconv-0.2/src/dictdbuilder.h
dictconv-0.2/NEWS
dictconv-0.2/TODO
dictconv-0.2/depcomp
dictconv-0.2/aclocal.m4
dictconv-0.2/README
dictconv-0.2/ltmain.sh
dictconv-0.2/configure
dictconv-0.2/CMakeLists.txt
dictconv-0.2/configure.in
dictconv-0.2/config.guess
dictconv-0.2/install-sh
dictconv-0.2/config.sub
dictconv-0.2/missing
dictconv-0.2/mkinstalldirs
dictconv-0.2/Makefile.am
dictconv-0.2/Makefile.in
dictconv-0.2/config.h.in
dictconv-0.2/Makefile.cvs
dictconv-0.2/AUTHORS
dictconv-0.2/INSTALL
dictconv-0.2/ChangeLog
dictconv-0.2/COPYING
rruella@rruella:~$ cd dictconv-0.2
rruella@rruella:~/dictconv-0.2$ sudo ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for xml2-config... no
checking for libxml - version >= 2.5.0... no
*** The xml2-config script installed by LIBXML could not be found
*** If libxml was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the XML2_CONFIG environment variable to the
*** full path to xml2-config.
configure: error: You must have libxml2 >= 2.5.0 installed
rruella@rruella:~/dictconv-0.2$ sudo make
make: *** No targets specified and no makefile found.  Stop.
rruella@rruella:~/dictconv-0.2$ sudo checkinstall

checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs?  [y]: y

Preparing package documentation...OK

Please write a description for the package.
End your description with an empty line or EOF.
>>

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 -  Maintainer: [ root@rruella ]
1 -  Summary: [ Package created with checkinstall 1.6.1 ]
2 -  Name:    [ dictconv ]
3 -  Version: [ 0.2 ]
4 -  Release: [ 1 ]
5 -  License: [ GPL ]
6 -  Group:   [ checkinstall ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ dictconv-0.2 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ dictconv ]

Enter a number to change any of them or press ENTER to continue:

Installing with make...Installing with install...

========================= Installation results ===========================
make: *** No rule to make target `install'.  Stop.

****  Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

rruella@rruella:~/dictconv-0.2$ wget http://info.babylon.com/glossaries/38C/Babylon_English_Portuguese.BGL
--2010-01-07 19:11:08--  http://info.babylon.com/glossaries/38C/Babylon_English_Portuguese.BGL
A resolver info.babylon.com... 38.101.169.206
A conectar info.babylon.com|38.101.169.206|:80... conectado.
Pedido HTTP enviado, a aguardar resposta... 302 Found
Localização: http://dl.babylon.com/info/glossaries_inst/38C/Babylon_English_Portuguese.exe [a seguir]
--2010-01-07 19:11:08--  http://dl.babylon.com/info/glossaries_inst/38C/Babylon_English_Portuguese.exe
A resolver dl.babylon.com... 81.93.185.141, 83.231.195.19, 213.198.65.8
A conectar dl.babylon.com|81.93.185.141|:80... conectado.
Pedido HTTP enviado, a aguardar resposta... 200 OK
Tamanho: 8887528 (8,5M) [application/octet-stream]
A gravar em: 'Babylon_English_Portuguese.exe'

100%[======================================>] 8.887.528    240K/s   em 22s     

2010-01-07 19:11:31 (387 KB/s) - 'Babylon_English_Portuguese.exe' gravado [8887528/8887528]

rruella@rruella:~/dictconv-0.2$ dictconv -o Babylon_English_Portuguese.dic Babylon_English_Portuguese.BGL
O programa 'dictconv' não está instalado.  Pode instalá-lo escrevendo:
sudo apt-get install dictconv
dictconv: command not found
rruella@rruella:~/dictconv-0.2$ sudo apt-get install dictconv
E: Não foi possível obter acesso exclusivo a /var/lib/dpkg/lock - open (11: Recurso indisponível temporariamente)
E: Impossível trancar a directória de administração(/var/lib/dpkg/), está outro processo a usá-la?
rruella@rruella:~/dictconv-0.2$ sudo apt-get install dictconv
A ler as listas de pacotes... Pronto
A construir árvore de dependências       
A ler a informação de estado... Pronto
Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  liblash2 libzzip-0-13 libatk1.0-dev debhelper libglib2.0-dev libwxgtk2.6-0
  libxmmsclient5 libpango1.0-dev libwxgtk2.8-0 libggadget-qt-1.0-0 libftgl2
  google-gadgets-common xmms2-plugin-pulse libcairo2-dev google-gadgets-gst
  libaudutil1 libsysfs-dev libdirectfb-extra python-utidylib libdirectfb-dev
  x11proto-composite-dev python-gtkmozembed conky-all xmms2-plugin-alsa
  libtidy-0.99-0 xmms2-plugin-id3v2 google-gadgets-xul x11proto-damage-dev
  libdbus-1-dev libwxbase2.6-0 libxcb-render-util0-dev libgtk2.0-dev
  libwxbase2.8-0 python-feedparser libggadget-gtk-1.0-0 libxdamage-dev
  xmms2-plugin-mad libdbus-glib-1-dev libfluidsynth1 libprojectm2
  libxcomposite-dev xmms2-core python-evolution liblua5.1-0 libpurple-dev
  libprojectm-data xmms2-client-cli html2text imagemagick
  xmms2-plugin-vorbis libpixman-1-dev libggadget-1.0-0 python-wnck
  libxcb-render0-dev libimlib2 python-chardet libreadline5 xmms2-icon
  libxmmsclient-glib1
Utilize 'apt-get autoremove' para os remover.
Serão instalados os seguintes NOVOS pacotes:
  dictconv
0 pacotes actualizados, 1 pacotes novos instalados, 0 a remover e 0 não actualizados.
É necessário obter 52,2kB de arquivos.
Após esta operação, serão utilizados 209kB adicionais de espaço em disco.
Obter:1 http://pt.archive.ubuntu.com karmic/universe dictconv 0.2-7 [52,2kB]
Obtidos 52,2kB em 0s (227kB/s)
A seleccionar pacote anteriormente não seleccionado dictconv
(A ler a base de dados ... 170261 ficheiros e directórios actualmente instalados.)
A descompactar dictconv (desde .../dictconv_0.2-7_i386.deb) ...
A processar 'triggers' para man-db ...
A instalar dictconv (0.2-7) ...
rruella@rruella:~/dictconv-0.2$ cat Babylon_English_Portuguese.dic | sed 's/\$[0-9][0-9]*\$\t/\t/' > Babylon_English_Portuguese_novo.dic
cat: Babylon_English_Portuguese.dic: Ficheiro ou directoria inexistente
rruella@rruella:~/dictconv-0.2$ sudo /usr/lib/stardict-tools/tabfile Babylon_English_Portuguese_novo.dic
Convert over.
Babylon_English_Portuguese_novo wordcount: 0
rruella@rruella:~/dictconv-0.2$ sudo mv Babylon_English_Portuguese_novo.dict.dz /usr/share/stardict/dic/
rruella@rruella:~/dictconv-0.2$ sudo mv Babylon_English_Portuguese_novo.i* /usr/share/stardict/dic/
rruella@rruella:~/dictconv-0.2$
Dar como resolvido, ou como solucionado um tópico seu:

http://www.youtube.com/watch?v=cW8isbYhR_M

alarcon

  • Visitante
Re: StarDic
« Resposta #1 Online: 07 de Janeiro de 2010, 17:52 »
Uma pergunta, você usa que versão do Ubuntu (ou Kubuntu)?

Pergunto isso por que pelo menos no Ubuntu 9.10 32bits não é necessário baixar o dictconv para ainda compilar, pois o mesmo se encontra nos repositórios do Ubuntu, portanto em formato .deb já compilado o que facilita muito os procedimentos.

Eu andei falando sobre o stardict aqui:

http://ubuntuforum-br.org/index.php/topic,60987.msg343732.html#msg343732

e aqui:

http://ubuntuforum-br.org/index.php/topic,57512.msg327718.html#msg327718

e tem mais este tópico aqui:

http://ubuntuforum-pt.org/index.php/topic,39024.msg232527.html#msg232527




Offline velox256

  • Usuário Ubuntu
  • *
  • Mensagens: 1.915
  • Debian é Debian... :)
    • Ver perfil
    • Linux Inside
Re: StarDic
« Resposta #2 Online: 08 de Janeiro de 2010, 08:53 »
É verdade, tanto que no próprio site coloquei que não é necessário mais a compilação do dictconv, conforme texto abaixo:

Citar
O StarDict  mudou o modo de baixar os arquivos de dicionários, agora vem em um arquivo EXE compactado, basta descompactá-lo e você verá o arquivo BGL que precisamos na pasta descompactada. Também não é necessário mais compilar o dictconv, basta instalar o pacote stardict-tools e o dictconv (além dos pacotes stardict-common, stardict-gtk para o Stardict).

Nada como ler as matérias até o final, hehehehehe...
Computador perereca, com disco perereca, monitor perereca e sistema super xuxu. Visitem a minha página em http://sidserra.k6.com.br ou meu blog em http://sidserra.blogspot.com.br.