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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-08-2003, 02:22 PM
|
#1
|
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123
Rep:
|
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?
|
|
|
03-08-2003, 02:48 PM
|
#2
|
Senior Member
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081
Rep:
|
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?
|
|
|
03-08-2003, 03:12 PM
|
#3
|
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123
Original Poster
Rep:
|
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 )
|
|
|
03-08-2003, 05:01 PM
|
#4
|
Senior Member
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081
Rep:
|
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*???
|
|
|
03-08-2003, 06:52 PM
|
#5
|
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:43 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|