Léa-Linux & amis :   LinuxFR   GCU-Squad   GNU
Comment créer une variable d'environnement ?
Envoyé par: len

Bonjour smiling smiley
Pour installer la derniere version de Gtk+ (2.4.0), j'ai dû installer Glib-2.4.0. l'install de glib s'est bien déroulé.

Le probleme survient quand je lance ./configure pour l'install de gtk.

Voilà le message d'erreur :

checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.


Visiblement, il cherche PKG_CONFIG_PATH qui n'existe pas. Comment créer cette variable ?

Poste le Thursday 6 May 2004 16:18:38
Répondre     Citer    
Re: Comment créer une variable d'environnement ?
Envoyé par: len

PS: echo $PAK_CONFIG_PATH ne renvoie rien

Poste le Thursday 6 May 2004 16:21:00
Répondre     Citer    
Re: Comment créer une variable d'environnement ?
Envoyé par: fraazz

il cherche surtout atk >= 1.0.1 et pango >= 1.4.0

si ces dépendances sont satisfaites, il se peut que les bibliothèques ne soient pas situées dans l'endroit standard

echo $PKG_CONFIG_PATH
/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig

et non pas echo $PAK_DE_BIERE winking smiley

Poste le Thursday 6 May 2004 16:51:00
Répondre     Citer    
Re: Comment créer une variable d'environnement ?
Envoyé par: fraazz

ah oui :
[lea-linux.org]

pour créer/modifier une variable d'environnement :
export $variable=...

Poste le Thursday 6 May 2004 16:56:49
Répondre     Citer    
Re: Comment créer une variable d'environnement ?
Envoyé par: len

PAK_DE_KRO : faute de frappe winking smiley


Pour atk et pango, j'ai aussi essayé, quand je lance ./configure de pango-1.4.0, voilà ce que j'obtiens :

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].


Et l'extrait de config.log qui va bien :

configure:21599: result: /usr/bin/pkg-config
configure:21622: checking for GLIB - version >= 2.4.0
configure:21771: result: no
configure:21804: 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:21810: $? = 1

Visiblement, il ne trouve pas de version up-to-date de glib, malgré que j'ai installé la 2.4.0. So ?

Poste le Thursday 6 May 2004 16:57:20
Répondre     Citer    
Re: Comment créer une variable d'environnement ?
Envoyé par: len

yes !! ça commence à ressembler à qqchose smiling smiley

Poste le Thursday 6 May 2004 17:04:44
Répondre     Citer    
Re: Comment créer une variable d'environnement ?
Envoyé par: len

bizarre ça : je viens d'installer proprement glib-2.4.0 et voilà ce que j'obtiens:

checking for GLIB - version >= 2.4.0...
*** 'pkg-config --modversion glib-2.0' returned 2.4.0, but GLIB (2.2.3)
*** 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

Poste le Thursday 6 May 2004 17:10:01
Répondre     Citer    
Re: Comment créer une variable d'environnement ?
Envoyé par: fraazz

essaierais-tu de passer à gnome-2.6 ?
manuellement c'est possible, mais la procédure est longue et très précise ...

Poste le Thursday 6 May 2004 17:11:19
Répondre     Citer    
Re: Comment créer une variable d'environnement ?
Envoyé par: len

pas du tout. juste installer dvdrip, qui réclame xvid4conf, qui réclame gtk-2.4.0, etc (vous connaissez la suite !)

voilà le pkoi du comment

Poste le Thursday 6 May 2004 17:12:25
Répondre     Citer    

Veuillez vous authentifier auparavant pour commenter.

 

Ce forum !
Comment créer une variable d'environnement ?
Posez dans ce forum les questions qui ne trouvent pas place dans les autres...

Sauf mention contraire, les documentations publiées sont sous licence Creative-Commons