compilier probleme

Randolph_D

Grünschnabel
hello again,
ich hab mir GKrellm runtergeladen und das ist ziemlich genial. Jetzt wollte ich mir ein paar Plugins installieren. Zuerst muss ich aber anscheinend gtk+-2.0 installieren. So hab ich es jedenfalls verstanden.
(damit ich die richtigen Bibliotheken hab um zu compilieren)
unterbrecht mich wenn´s nicht stimmt. (ha ha)

Ich entpacke also "gtk+-2.0.6.tar.gz" und sende ein "./configure" im entpackten Ordner, und bis auf ein "no" rasselt jede menge schöner text über meine Konsole.
"make" will er aber dann doch nicht machen.

Was mach ich da eigentlich? :)
 
Ohne die Ausgabe des configure-Skripts kann man da nicht viel helfen... Das Skript prüft, ob zum Kompilieren der Anwendung (in Deinem Fall also von gtk) die notwendigen Libraries, Header, etc. vorhanden sind. Anscheinend ist das bei Dir nicht der Fall...
 
Wenn Du gtk installieren willst checkt der auf jeden Fall nach der glib.
Die sollte eigentlich installiert sein, nur koennte die falsche Version installiert sein. Vorausgesetzt es ist wirklich die glib wo er sagt NO.
Und warum nimmt Du so'n "altes" GTK?
Die aktuelle Version ist 2.6.1, die aktuelle glib ist auch Version 2.6.1
Fuer glib brauchst Du, mein ich zumindest, dann auch noch Pango (aktuelle Version 1.8.0) und atk (aktuelle Version 1.9.0).
Uebrigens, die Versionsnummer die ich hier als aktuell anpreise sind die Versionen die ich aktuell in meiner Sammlung liegen habe, koennten aber nicht ganz top-aktuell sein.
Aber ich bemueh mich immer meine Sammlung auf dem aktuellen Stand zu halten.

Falls das configure-Script nicht wegen der glib meckert hab ich das natuerlich alles umsonst geschrieben, aber vielleicht findet's ja trotzdem einer interessant. :)
 
Also hier mein configure skript:

mylinx:~/gtk+-2.0.6 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output... 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 gcc accepts -g... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i586-suse-linux/bin/ld
checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/i586-suse-linux/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 dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
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 for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
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 if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking for some Win32 platform... no
checking for native Win32... no
checking whether build environment is sane... yes
checking for strerror in -lcposix... no
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... (cached) yes
checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (glib-2.0 >= 2.0.6 atk >= 1.0.1 pango >= 1.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variableif your libraries are in a nonstandard prefix so pkg-config can find them.
mylinx:~/gtk+-2.0.6 #

und zu den neuesten paketen: ich hab gesucht!
http://rpm.sh-linux.org/rpm-index-2004/Unknown.html
http://fr.rpmfind.net/linux/gnome.org/sources/
http://www.liks2linux.de
http://www.linuxpackages.net (nur slackware?)

na ja, und google. Vielleicht hast du ja ein Link für mich :).



 

"configure: error: Library requirements (glib-2.0 >= 2.0.6 atk >= 1.0.1 pango >= 1.0.1)(Sind da! Bin mir nur nur über die Version nicht sicher.) not met; consider adjusting the PKG_CONFIG_PATH environment variable (Und wo stell ich den denn ein?) if your libraries are in a nonstandard prefix so pkg-config can find them."




---------------------------------------------------------------

Oh Heiland, ich kann lesen!
 
Meine Linux installation ist eine 9.2 DVD die ich mir aus dem Netz gezogen hab. Kann es sein das da enfach nicht die richtigen und kompletten Pakete bei sind?
Ich bekomm:
configure: error:*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
mylinx:~/compiler/glib-2.6.1/glib-2.6.1 #
oder:
make[3]: Entering directory `/root/gettext-0.14/gettext-0.14/gettext-runtime/intl-csharp'
/bin/sh ../lib/csharpcomp.sh -O -g -o GNU.Gettext.dll ./intl.cs
C# compiler not found, try installing pnet, then reconfigure
make[3]: *** [GNU.Gettext.dll] Error 1
make[3]: Leaving directory `/root/gettext-0.14/gettext-0.14/gettext-runtime/intl-csharp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/gettext-0.14/gettext-0.14/gettext-runtime'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/gettext-0.14/gettext-0.14/gettext-runtime'
make: *** [all-recursive] Error 1
mylinx:~/gettext-0.14/gettext-0.14 #
und:
checking for zlibVersion in -lz... no
configure: error: ZLib not installed
mylinx:~/compiler/libpng-1.2.8/libpng-1.2.8-config # make
make: *** No targets specified and no makefile found. Stop.
mylinx:~/compiler/libpng-1.2.8/libpng-1.2.8-config #
und draussen scheint die Sonne :confused:
und pkgconfig will auch nicht...
 
Zuletzt bearbeitet:
Also irgendwie scheint bei Dir die Haelfte zu fehlen.
Und warum gettext wegen 'nem fehlenden C#-Compiler meckert ist mir neu, hab's auch drauf und brauchte nie Mono (der C#-Compiler fuer Linux) um's zu bauen.
Bei der libpng sieht's so aus als haettest Du vergessen das configure-Script laufen zu lassen, in meinem Archiv find ich eins.

Nachtrag: Die zlib gibt's hier
 
Johannes Röttger hat gesagt.:
Installier es doch per Yast? Das loest, wenn du glueck hast, sogar die Abhaengigkeiten auf.
Hmm, guter Vorschlag. Haett ich eigentlich auch drauf kommen koennen. Hab ich wohl nicht dran gedacht da ich immer alles kompiliere. :)
 

Neue Beiträge

Zurück