LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-16-2004, 03:12 PM   #1
MDBlueIce
Member
 
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47

Rep: Reputation: 15
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?
 
Old 08-16-2004, 03:37 PM   #2
NumbSkullMD
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17

Rep: Reputation: 0
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.
 
Old 08-16-2004, 03:44 PM   #3
Marlboro
LQ Newbie
 
Registered: Aug 2004
Location: Colombian mountains
Distribution: FC2
Posts: 11

Rep: Reputation: 0
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
 
Old 08-16-2004, 03:47 PM   #4
Marlboro
LQ Newbie
 
Registered: Aug 2004
Location: Colombian mountains
Distribution: FC2
Posts: 11

Rep: Reputation: 0
sorry, the latest version is 2.4.7

more information click here
 
Old 08-16-2004, 10:44 PM   #5
NumbSkullMD
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17

Rep: Reputation: 0
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.

 
Old 08-16-2004, 10:50 PM   #6
MDBlueIce
Member
 
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47

Original Poster
Rep: Reputation: 15
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.
 
Old 08-16-2004, 10:53 PM   #7
NumbSkullMD
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17

Rep: Reputation: 0
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 .

 
Old 08-17-2004, 12:34 AM   #8
MDBlueIce
Member
 
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47

Original Poster
Rep: Reputation: 15
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.
 
Old 08-17-2004, 10:53 AM   #9
NumbSkullMD
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10.0
Posts: 17

Rep: Reputation: 0
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 .

 
Old 02-25-2005, 09:22 PM   #10
Francis
Member
 
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37

Rep: Reputation: 15
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
 
Old 02-26-2005, 07:46 PM   #11
Francis
Member
 
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37

Rep: Reputation: 15
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
 
Old 02-26-2005, 09:00 PM   #12
Francis
Member
 
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37

Rep: Reputation: 15
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
 
  


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
having trouble with glib, gtk, etc HKJGN Linux - Software 8 05-10-2005 11:34 AM
having trouble with glib, gtk, etc HKJGN Linux - Software 0 04-26-2005 10:55 AM
Glib 2.6.1 and GTK+ 2.6.1 issues - please help! sfunk1x Linux - Newbie 14 02-02-2005 05:40 AM
Glib, GTK and XMMS plugins - help required!!! foxy123 Linux - Software 3 12-23-2004 07:10 AM
trouble installing gtk, on glib pkgconfig returned 2.4.2 but 2.2.3 was found uv1 Linux - Newbie 7 08-02-2004 09:42 AM


All times are GMT -5. The time now is 05:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration