LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-01-2007, 06:36 PM   #1
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Rep: Reputation: 15
glib2 issues


After searching for a long time i have yet to find a solution for my problem.
I did find out that package-config doesn't seem to like glib2 for some reason...

Anyway, i can't compile any piece of software that needs glib2.
I'll take wireshark as an example.
while running ./configure it said i had 2 versions of glib2 installed...2.6.6 and 2.12.6 which was correct.
So i uninstalled 2.6.6.
When running ./configure again i get this error:

Code:
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ 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 GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
configure: error: GLib2 distribution not found.
Well then, i thought i'd install gtk+-2.10.9. (the version currently on my system is the rpm that came with my distro gtk+-1.2.10-25)
But alas...when i did ./configure i got this:

Code:
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.12.0    atk >= 1.9.0    pango >= 1.12.0    cairo >= 1.2.0) were not met:

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

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
My glib-2.0.pc is in /usr/local/lib/pkgconfig/glib-2.0.pc
And i did a export PKG_CONFIG_PATH /usr/local/lib just in case...

Anyone got any ideas? i'm all out...
 
Old 05-01-2007, 06:42 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I do not know about your distro but in Fedora we have to have the -devel packages installed (in addition to the regular ones) in order to compile anything.
 
Old 05-01-2007, 06:44 PM   #3
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
i'm building from source
 
Old 05-01-2007, 06:51 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You mean you are building glib2 from source too?
 
Old 05-01-2007, 07:12 PM   #5
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
i believe i got the 2 mixed up, sorry.
As you can see from the errors it wants => glib-2.0

And i installed glib-2.12.9 successfully from source.
I do have the old rpm still installed...loads of dependencies.
 
Old 05-01-2007, 07:17 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Once again. In Fedora we would need BOTH glib2 and glib2-devel in order to compile something that needed glib2.
 
Old 05-01-2007, 07:46 PM   #7
Cyber Maid
Member
 
Registered: Feb 2005
Location: The Netherlands
Distribution: Turbolinux FUJI
Posts: 114

Original Poster
Rep: Reputation: 15
i don't need glib2 i need glib-2.0...and like i just said. i have installed the latter from source.
If you read the error you'd understand...and yes most distro's working with prebuild packages like fedora need devel rpm's...but not from source.
 
Old 05-01-2007, 09:37 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Yes, I do understand. However, when you have an rpm installed (as above) a lot of times (not always) the system goes looking for the -devel to match the installed package EVEN when the package has been updated from source. Yes, I do install a lot of stuff from source (not source rpms).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
glib2 v2.6.6-1 (Fedora) --> v2.8.6-1 (GST) Kropotkin Fedora 2 02-19-2006 08:29 AM
having problem in installing glib2-2.6.4-1 mohtasham1983 Linux - General 4 09-19-2005 05:51 PM
Upgrading glib2 jrdioko Linux - Software 10 06-04-2005 05:40 PM
Problems installing Glib2 eggoz Linux - Software 0 06-27-2004 06:28 PM
upgrade to glib2.3 wilsnyder Linux - Software 1 07-02-2003 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration