Tout d'abord je ne sais pas si c'est dans cette rubrique qu'il fallait que je poste ce message. :-/
Je précise que je débute en linux.
Je tourner sous Mandrake 10.0 official.
J'ai deja installé quelques progs par l'intermédiaire de la compilation des sources fournies dans des fichiers compressés et aussi en RPMs, mais la j'ai un problème a l'installation de gLib-2.5.4 que j'ai téléchargé sur ftp.gtk.org .
J'arrive a compiler et a installer glib par:
# ./configure
# make
# make install
# make clean
mais au ./configure de pango-1.5.2 (téléchargé au même endroit) je reçois:
<
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.4.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed .
configure: error:
*** Glib 2.4.0 or better is required. The latest version of
*** Glib is always available from [
ftp.gtk.org].
>
extrait du config.log:
<
configure:21792: gcc -o conftest -g -O2 -Wall conftest.c >&5
conftest.c:27:18: glib.h: No such file or directory
conftest.c: In function `main':
conftest.c:33: error: `glib_major_version' undeclared (first use in this function)
conftest.c:33: error: (Each undeclared identifier is reported only once
conftest.c:33: error: for each function it appears in.)
conftest.c:33: error: `glib_minor_version' undeclared (first use in this function)
conftest.c:33: error: `glib_micro_version' undeclared (first use in this function)
configure:21798: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "pango"
| #define PACKAGE_TARNAME "pango"
| #define PACKAGE_VERSION "1.5.2"
| #define PACKAGE_STRING "pango 1.5.2"
| #define PACKAGE_BUGREPORT "[
bugzilla.gnome.org];
| #define PACKAGE "pango"
| #define VERSION "1.5.2"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_X 1
| /* end confdefs.h. */
|
| #include <glib.h>
| #include <stdio.h>
|
| int
| main ()
| {
| return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
| ;
| return 0;
| }
configure:21842: error:
*** Glib 2.4.0 or better is required. The latest version of
*** Glib is always available from [
ftp.gtk.org].
>
aussi quand je fais:
# pkg-config --modversion glib
je recois "1.2.10"
# pkg-config --modversion glib-2.0
je recois "2.2.3" donc ca va pas :-(
Si je comprends bien mon installation non-RPM n'est pas reconnue par le système. Donc j'ai lu quelque part que je devais faire un truc dans ce genre:
# export PKG_CONFIG_PATH=<chemin>/pkgconfig
Le Problème est que je ne sais pas où est installé glib et donc je connais pas le chemin qu'il faut mettre dans ma derniere commande.
Merci d'avance pour vos réponces ;-)
Ma vie pour Ner'zuhl