LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 03-08-2003, 02:22 PM   #1
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
glib question


I've got a question regarding glib versions. I've installed glib 2.2.1 in order to compile gtk+ 2.2.1 and that went fine.
But now I'm trying to compile xmms and get an error:

checking for glib-config... no
checking for GLIB - version >= 1.2.2... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.

Programs that need glib2 compile just fine.
glib2 works with pkgconfig afaik but glib1 doesn't.
If I compile glib 1.3.15 I get no glib-config file whatsoever
(due to pkgconfig I think), so how can I compile programs that need glib1 versions?
 
Old 03-08-2003, 02:48 PM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 45
Okay - it depends where you installed Glib-1.3.15 to.

You need to search for it to make sure it is there. When I installed it, I ran:

./configure --prefix=/usr

followed by the usual to compile it. The prefix made glib install glib-config here:

/usr/bin/glib-config

If you didn't specify a prefix then you will find it at /usr/local/bin/glib-config
(BTW - I have a pkgconfig file for glib and glib-2.0).

Once you have located it, check your $PATH variable to include the directory it is held, like so:

echo $PATH

Which should show you something like this (here's mine):

.:/home/cmarch/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/bin
:/opt/gnome/bin:/opt/gnome2/bin:/opt/java/j2sdk-1.4.1/bin:
/home/cmarch/test/usr/bin

You can add a directory to $PATH by typing:

export PATH=$PATH:/any/directory/bin

Obviously changing the directory! You are using LFS right? Which version? And have you followed the BLFS book for compiling xmms?
 
Old 03-08-2003, 03:12 PM   #3
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Original Poster
Rep: Reputation: 47
Quote:
Originally posted by CragStar
The prefix made glib install glib-config here:
/usr/bin/glib-config
That's it, it doesn't make nor install that glib-config file.
My PATH does point to those directories but I don't understand why it's not generating that config file.
I'm using 4.0 and I did have a look at BLFS but I still don't get why that file isn't been generated (I said that already)
 
Old 03-08-2003, 05:01 PM   #4
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 45
If it's not there - and you have searched for it - then the only thing you can do is re-install glib.

But to me it is odd for it not to be installed - have you compiled any other programs that use glib-1*???
 
Old 03-08-2003, 06:52 PM   #5
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Original Poster
Rep: Reputation: 47
It's ok now, installed glib-1.2.10 and that works perfectly.
I reinstalled the other one a dozen times, but as long as I don't need it, things can be done with 1.2.10.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Question about glib install richardji Linux - General 1 07-12-2005 04:26 AM
Question about Glib Library ninja Linux - Software 3 11-24-2004 11:06 AM
Question about GLIB 1.2.2 Inexactitude Linux - Newbie 1 10-18-2003 05:09 PM
Please assist newbie with glib question Gurtnamona Linux - Software 10 08-20-2003 01:31 PM
simple glib question ... purpleburple Linux - General 2 10-17-2002 07:58 AM


All times are GMT -5. The time now is 09:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration