Eu tenho uma pesquisa sobre a distância de compactação da atribuição do autor. E eu deveria usar o "Complearn", que é um programa de compressão, no meu trabalho. Mas no começo eu tenho problema em instalar este programa.
1) Eu faço o download do programa deste link para o Linux Mint (que está na máquina virtual no meu computador Windows (VM no VirtualBox));
2) Eu escrevi na janela do terminal do programa, um por um (no diretório do programa, é claro),
./configure
(Depois de configurar o passo eu tenho alguns erros sobre dependências de requisitos, por ex. gsl, zlib. etc. Eu instalei todos eles. Por último requerido glib.E eu instalei-o, mas ele me deu mais um erro sobre velho versão glib existe.Erro foi isso:
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 com este comando:
echo $LD_LIBRARY_PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Depois disso eu tento o passo ./configure, ele 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? Podes ajudar-me, por favor? Não encontrei nenhuma sugestão para corrigir esse erro no meu googling.
Obrigado.