Wiederholter Fehler: #error "Nurkönnen direkt eingebunden werden."

Wiederholter Fehler: #error "Nurkönnen direkt eingebunden werden."

Ich habe eine Untersuchung zum Komprimierungsabstand bei der Autorenzuordnung durchgeführt. Und ich sollte bei meiner Arbeit „Complearn“, ein Komprimierungsprogramm, verwenden. Aber am Anfang hatte ich Probleme bei der Installation dieses Programms.

1) Ich lade das Programm von diesem Link in Linux Mint herunter (das sich in einer virtuellen Maschine auf meinem Windows-Computer befindet (VM in VirtualBox));

http://www.complearn.org/downloads/libcomplearn-1.1.7.tar.gz

2) Ich schrieb nacheinander in das Terminalfenster des Programms (natürlich im Programmverzeichnis):

./configure

(Nach dem Konfigurieren habe ich einige Fehlermeldungen bezüglich der Abhängigkeiten von Anforderungen erhalten, z. B. gsl, zlib usw. Ich habe sie alle installiert. Zuletzt wurde glib benötigt. Und ich habe es auch installiert, aber es hat mir noch eine Fehlermeldung angezeigt, nämlich dass eine alte Version von glib existiert. Der Fehler war dieser:

    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

Ich habe es mit diesem Befehl gelöst:

echo $LD_LIBRARY_PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Danach habe ich den Schritt ./configure versucht, es ist nicht fehlgeschlagen.)

Dann

 make

Und es ist mit diesem Fehler fehlgeschlagen:

> 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

Was bedeutet das? Was muss ich tun, um dieses Problem zu lösen? Können Sie mir bitte helfen? Ich habe beim Googeln keine Vorschläge zur Behebung dieses Fehlers gefunden.

Danke.

verwandte Informationen