LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Pango won't install because GLib >=2.4 is required!? (https://www.linuxquestions.org/questions/linux-software-2/pango-wont-install-because-glib-%3D2-4-is-required-207542/)

black hole sun 07-20-2004 03:22 PM

Pango won't install because GLib >=2.4 is required!?
 
I'm at my wits end...

Pango 1.5.1, one of the dependencies of the latest GIMP program, will not install because it says the following when I ./configure

Code:

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://ftp.gtk.org/.

...and here's the relevant part of my config.log...

Code:

configure:21610: checking for GLIB - version >= 2.4.0
configure:21759: result: no
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:

The thing is, I've installed Glib 2.5.0 - SEVERAL TIMES OVER just to make sure I did it right the first time! Why won't the Pango installer find it? I didn't install glib with any special options...just the same routine installation most other programs use.


I'm using Mandrake 10.0, as my profile says.

Help please :confused::(

acid_kewpie 07-20-2004 03:58 PM

i assume you installed glib from RPM... if so install the glib-devel package too, or you're not installing a thing.

black hole sun 07-20-2004 04:04 PM

Quote:

Originally posted by acid_kewpie
i assume you installed glib from RPM... if so install the glib-devel package too, or you're not installing a thing.
No, I installed from the tar.gz package.

acid_kewpie 07-20-2004 04:50 PM

Code:

conftest.c:27:18: glib.h: No such file or directory
well it totally can't find it at all... you sure? you can always open up the configure script and find tat test, and recreate it yourself to see what's up. that check will be using pkgconfig, somewhere there will (if you did install from source) be a file, glib-2.0.pc, which is what is used for the detection. i'd guess that's not there.

chis 07-23-2004 11:43 PM

I've got the same problem
 
I've got *exactly* the same problem.

I've got a few problems:
1.) wanted to install GAIM 0.8 from source code, complains that gtk is not installed or whatever (actually, "locate gtk+-2.0.pc returns nothing...which worries me.........but I'm pretty sure mandrake 10 has gtk 2.0 or above....any solutions in where i can find gtk+-2.0.pc???)

2.) went to dl gtk+-2.4 tar.gz and install..........complains about glib not installed, version problem during ./configure

3.) went to install glib 2.4.4, no problems, very smooth (using ./configure, make and make install)

4.) went back to gtk and it STILL COMPLAINS!!!!

======================================================
[root@localhost gtk+-2.4.4] ./configure
...
checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0... Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3

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.

[root@localhost gtk+-2.4.4]# echo $PKG_PATH_CONFIG
/usr/lib/pkgconfig

[root@localhost gtk+-2.4.4]# ls $PKG_PATH_CONFIG
alsa.pc fribidi.pc gnome-mime-data-2.0.pc libexif.pc libxine.pc openssl.pc xft.pc
audiofile.pc gedit-2.4.pc gobject-2.0.pc libexslt.pc libxml-2.0.pc vorbisenc.pc xrender.pc
esound.pc glib-2.0.pc gthread-2.0.pc libgphoto2.pc libxslt.pc vorbisfile.pc
fontconfig.pc gmodule-2.0.pc gtk-engines-2.pc libpng12.pc mad.pc vorbis.pc
freetype2.pc gnome-icon-theme.pc libart-2.0.pc libpng.pc@ ogg.pc xcursor.pc

** The GLIB version detected is 2.2.3, but i *did* install it (many times).
** gtk+-2.0.pc is absent
** glib-2.0.pc is present

========================================================


I know I didn't describe my problem very well...........but if anyone knows the solution, or tried it before and worked.............pls reply..........

Or if anyone can teach me the commands for detecting the current version of a particular software, pls reply as well....i need your help!!

thanks

chis

eckerww 07-24-2004 08:14 AM

I'm having the same problem as well... though when I checked my config.log I saw a bunch of compiler errors. Have you guys checked your config.log files for similar conditions? It bugs me because I've compiled and installed a bunch of other programs and glib seems to be the only one that's having troubles. Are there environment variables or compiler settings that should be set before glib is compiled?

Wes

P.S. this is what I got on my installation attempt...

http://www.linuxquestions.org/questi...ndrake+10+glib

chis 07-24-2004 08:28 AM

...
 
*sigh*......

hopefully, some experts will come around and teach us.........

chis

acid_kewpie 07-24-2004 08:38 AM

there really is no reason for you to try to compile gtk from source. just because you might wish to install an application using gtk from source, doesn't mean RPM's for GTK will work just super. just make sure you have all the relevant -devel libraries for gtk glib etc.. and you'll be fine.

chis 07-24-2004 09:06 AM

so...

are you suggesting that i need those devel packages even if i dl and compile from source code??

Or are you saying that we should find some rpm files (+ devel rpm ) and run it??

There are also an awful lot of dependencies problem with rpm...........how to solve those?

chis

snellgrove 07-25-2004 03:40 AM

same here!
 
Im having the same bloomin problem here! figured i'd come here and :study:

Im trying to get GKrellm installed, and it said it needed GTK -Fair enough, I thought..so off I go, and get GTK 2.4 -the newest being 2.4.4, and it said it needed Glib. so I got, glib 2.4 (newest, again being 2.4.4 i believe -I never install the latest versions out, as im sure it'll probably break half my Linux!! :p) and I install Glib, it said it went fine.. I check GTK again and ..huh?! what do you mean glib isnt installed!!

and doing a "pkg-config --modversion glib" it returns a rather shocking: 1.2.10 :eek:

acid_kewpie 07-25-2004 06:32 AM

you want the -devel rpm's (which ARE on your distro cd's already waiting for you) instead of downloading any gtk source code.

dependencies suck... that's why i stopped using mandrake, although the urpmi tool on there does deal with a fair few of them quite well.

opioid 08-10-2004 09:59 AM

Fix
 
Acid, I don't know that giving the advice to forego source for binaries just because you don't have the answer is advisable. No offense intended.


Run the following as root:


PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
LD_LIBRARY_PATH="/usr/local/lib"
export PKG_CONFIG_PATH LD_LIBRARY_PATH


Voila!

Ken-shin17 08-11-2004 12:28 PM

THx

that helped but the configure commands doesnt give errors anymore but i still can't comoile it with make

output :

/usr/lib/libgobject-2.0.so: undefined reference to `g_bsearch_array_destroy'
/usr/lib/libgobject-2.0.so: undefined reference to `g_bsearch_array_new'
/opt/pango-1.4.1/pango/.libs/libpangoft2-1.0.so: undefined reference to `g_type_instance_get_privat e'
/usr/lib/libgobject-2.0.so: undefined reference to `g_bsearch_array_insert'
/opt/pango-1.4.1/pango/.libs/libpangoft2-1.0.so: undefined reference to `g_type_class_add_private'
collect2: ld returned 1 exit status
make[4]: *** [pango-querymodules] Error 1
make[4]: Leaving directory `/opt/pango-1.4.1/pango'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/pango-1.4.1/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/pango-1.4.1/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/pango-1.4.1'
make: *** [all] Error 2

root@ken-shin:/opt# ldconfig -v |grep gobject libgobject-2.0.so.0 -> libgobject-2.0.so.0.200.3
libgobject-2.0.so.0 -> libgobject-2.0.so.0.400.5


i was ganna make a nice question but i already solved it :D
I saw there are a lot of ppl having troubles with libraries soi'll give my solution.

dont have the same librarie laoded twice! that's what solved my problem, i just removed the one in /usr/lib and left the one in /usr/local/lib

hope i helped..



Adan 08-21-2004 09:12 AM

I have the same problem as Ken-shin17... If i try to compile pango using make it gives me a bunch of errors same as ken-shin's....

Esrix 08-25-2004 01:09 PM

I've been running into the same problem- Pango does not want to install because it can't find the most recent dependencies after I install them. I also agree that simply looking for RPMs of the program you need are not the end all-be all solution.

In the most recent version of the GIMP tarbell packages I downloaded, it did mention that GIMP may not successfully install even after installing the newest version of ATK because it may detect an older version of ATK on the system. It recommends (and I kid you not) removing the old ATK libraries.

The reason I have not done so is because I'm afraid of the consequences. I'm afraid that if I did remove the old library and then tried to install, there might be some error that would keep me from using GIMP altogether. Which would mean I would have to re-install mandrake.

Surely, there must be another way to solve this.


All times are GMT -5. The time now is 02:42 PM.