Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
|
08-16-2004, 03:12 PM
|
#1
|
Member
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47
Rep:
|
Trouble installing XMMS, gtk/glib issues.
I untarred xmms, and when i type ./configure, a long process log comes up, which ends with the following:
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.
configure: error: *** GLIB >= 1.2.2 not installed - please install first ***
Sure enough, I looked at the xmms readme file, and it says gtk/glib 1.2.2 or better is required to install xmms. Does anyone know where I can obtaint this? Also, I am a complete newbie, so could you please explain the installation procedure. Finally, do I have to undoe any og the installatio process already done on xmms in order to make things work?
|
|
|
08-16-2004, 03:37 PM
|
#2
|
LQ Newbie
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17
Rep:
|
Check out www.gtk.org for what you need. You'll most likely also need pango and atk. When in doubt, just google the package name you need and you'll find dozens of good pages .
After you install the needed dependencies, just ./configure xmms again and it should work. If it doesn't work, post and let us know
Last edited by NumbSkullMD; 08-16-2004 at 03:39 PM.
|
|
|
08-16-2004, 03:44 PM
|
#3
|
LQ Newbie
Registered: Aug 2004
Location: Colombian mountains
Distribution: FC2
Posts: 11
Rep:
|
the only thing you have made so far is unpack the xmms file so you dont have to undo anything
ftp://ftp.gtk.org/pub/gtk/v2.4/
download the glib version u want and then install it
good luck
ps. the latest version is 2.4.5
|
|
|
08-16-2004, 03:47 PM
|
#4
|
LQ Newbie
Registered: Aug 2004
Location: Colombian mountains
Distribution: FC2
Posts: 11
Rep:
|
sorry, the latest version is 2.4.7
more information click here
|
|
|
08-16-2004, 10:44 PM
|
#5
|
LQ Newbie
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17
Rep:
|
I've just been trying to install xmms 1.2.10 and from searches on this forum, I've found that you can't use glib2 or gtk+2 with xmms. You must install glib 1.2.10 and gtk 1.2.0.
|
|
|
08-16-2004, 10:50 PM
|
#6
|
Member
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47
Original Poster
Rep:
|
Well I tried to install gtk, but ran into more problems upon inputing the ./configure command. Here is what i got:
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pan go >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variabl e if your libraries are in a nonstandard prefix so pkg-config can find them.
1. What "path" is this message referring to?
2. What should i do about this?
All help is greatly appreciated.
|
|
|
08-16-2004, 10:53 PM
|
#7
|
LQ Newbie
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17
Rep:
|
You need to ensure the PKG_CONFIG_PATH environment variable is set to the right path. Try, as root:
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export PKG_CONFIG_PATH
alternatively, you can add these to /etc/profile to make them permanent. BTW, all this info was found elsewhere on this site .
|
|
|
08-17-2004, 12:34 AM
|
#8
|
Member
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47
Original Poster
Rep:
|
I tried to do what you said (the first method), but I still get the same error message upon running ./configure for gtk. How do I go about permanently moving it? Thanx alot for the help.
|
|
|
08-17-2004, 10:53 AM
|
#9
|
LQ Newbie
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17
Rep:
|
Open up a terminal and su to root. Then edit your /etc/profile file...I used emacs
su
(password)
xemacs /etc/profile
Add the information I posted above to the end of the file:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
save the file
Then logout of x and log back in and your new environment variable should be configured. Type env just to be sure .
|
|
|
02-25-2005, 09:22 PM
|
#10
|
Member
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37
Rep:
|
I'm having a similar problem trying to install GTK2, something to do with the PKG-CONFIG-PATH environment variable thingy.
configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pan
go >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variabl
e if your libraries are in a nonstandard prefix so pkg-config can find them.
Lots of (very helpful people) have been suggesting various commands to type in to fix the problem, but I was wondering if someone could explain how the whole path variable thing works and what it does, I prefer to understand the problem before I fix it. Is the PKG-CONFIG-PATH environment variable a file? Where is it located? What information does it hold and what programs/commands use that information? As far as I can tell something is looking at the PKG-CONFIG-PATH for something and not finding it, what is looking and what is it looking for? How is it related to the pkg-config package?
I've been installing various packages (pkg-config, glib as required by GTK2) but they aren't found when I run the configure file for GTK2, is this because I've installed them in a non-standard directory as suggested by the error message above? If I extracted pkg-config and glib to the /opt directory then went into their respective directories and ran ./configure, make, install, where would the packages install to, a default directory or to their current directory?
Finally, what would I do to fix this problem? Do I need to open up PKG-CONFIG-PATH and add something, or would I use the command prompt in some way?
Please bear in mind that I am a noob, but that I would appreciate a good explanation of why I recieved the error message I got. Any help given would be very much appreciated (big ups to the gurus out there) - cheers,
Francis
|
|
|
02-26-2005, 07:46 PM
|
#11
|
Member
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37
Rep:
|
OK I found some info on linux.org about environment variables and stuff and am sort of understanding it a bit more, not quite sure what the PKG-CONFIG-PATH="/usr/local/lib/pkgconfig" does and what the export PKG-CONFIG-PATH command does, but I tried them anyway with no success. I get an error telling me that there is no such file or directory, but when I cd into the directory, pkgconfig is there. I also tried the commands using /usr/local/bin as there are some pkgconfig things there aswell, but that didn't work either.
Is PKG-CONFIG-PATH meant to be an environment variable of BASH? With /usr/local/lib as it's value? Is that what I'm meant to be trying to make?
If I echo $PATH, I don't get /usr/local/lib listed, should it be? Or am I on the wrong path (pun unintended but rather apt!)?
Anyone
|
|
|
02-26-2005, 09:00 PM
|
#12
|
Member
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37
Rep:
|
Bah silly me, I was typing PKG-CONFIG-PATH instead of PKG_CONFIG_PATH.
Still didn't help much though, I did the whole PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" and that worked, so I did the export PKG_CONFIG_PATH and that worked so I went into the GTK2 directory and ran ./configure but it still gave the same error..
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.]]
pkgconfig has a directory containing .pc files that hold information about the location of various bits of various libraries, I can see that directory and the files in it, so I know it exists, I've set the PKG_CONFIG_PATH environment variable to /usr/local so pkgconfig should be able to find it's .pc files, but it doesn't
Any suggestions
|
|
|
All times are GMT -5. The time now is 08:06 AM.
|
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
|
|