
Tenho uma pesquisa sobre distância de compressão de atribuição de autor. E eu deveria usar o "Complearn", que é um programa de compressão, no meu trabalho. Mas no começo tenho problemas para instalar este programa.
1) Baixei o programa deste link para o Linux Mint (que está na máquina virtual do meu computador Windows (VM no VirtualBox));
http://www.complearn.org/downloads/libcomplearn-1.1.7.tar.gz
2) Escrevi na janela do terminal do programa um por um (no diretório do programa, é claro),
./configure
(Após a etapa de configuração, recebi alguns erros sobre dependências de requisitos, por exemplo, gsl, zlib. etc. Eu instalei todos eles. Por fim, o glib é necessário. E eu instalei, mas me deu mais um erro, é sobre a versão antiga que o glib existe .Erro foi este:
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.42.0, but GLIB (2.40.2)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: must have glib >= 2.0.0 and gobject installed
Eu resolvi isso com este comando:
echo $LD_LIBRARY_PATH exportar LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Depois disso, tentei a etapa ./configure, mas não falhou.)
então
make
E falhou com este erro:
> In file included from anydecompress.c:32:0:
> /usr/local/include/glib-2.0/glib/garray.h:29:2: error: #error "Only <glib.h> can be included directly."
> #error "Only <glib.h> can be included directly."
> ^
> In file included from /usr/local/include/glib-2.0/glib/garray.h:32:0,
> from anydecompress.c:32:
> /usr/local/include/glib-2.0/glib/gtypes.h:29:2: error: #error "Only <glib.h> can be included directly."
> #error "Only <glib.h> can be included directly."
> ^
> In file included from /usr/local/lib/glib-2.0/include/glibconfig.h:9:0,
> from /usr/local/include/glib-2.0/glib/gtypes.h:32,
> from /usr/local/include/glib-2.0/glib/garray.h:32,
> from anydecompress.c:32:
> /usr/local/include/glib-2.0/glib/gmacros.h:33:2: error: #error "Only <glib.h> can be included directly."
> #error "Only <glib.h> can be included directly."
> ^
> In file included from /usr/local/include/glib-2.0/glib/gtypes.h:34:0,
> from /usr/local/include/glib-2.0/glib/garray.h:32,
> from anydecompress.c:32:
> /usr/local/include/glib-2.0/glib/gversionmacros.h:29:2: error: #error "Only <glib.h> can be included directly."
> #error "Only <glib.h> can be included directly."
> ^
> anydecompress.c: In function ‘main’:
> anydecompress.c:59:3: warning: ‘g_type_init’ is deprecated (declared at /usr/local/include/glib-2.0/gobject/gtype.h:679) [-Wdeprecated-declarations]
> g_type_init ();
> ^
> make[2]: *** [anydecompress-anydecompress.o] Error 1
> make[2]: Leaving directory `/home/kubra/libcomplearn-1.1.7/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/kubra/libcomplearn-1.1.7/src'
> make: *** [all-recursive] Error 1
O que isso significa? O que devo fazer para resolver este problema? Você poderia por favor me ajudar? Não encontrei nenhuma sugestão para corrigir esse erro em minha pesquisa no Google.
Obrigado.