LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error compiling a program (https://www.linuxquestions.org/questions/linux-newbie-8/error-compiling-a-program-347852/)

minm 07-28-2005 08:41 PM

error compiling a program
 
Hey, im trying to compile the xmms-speakers plugin package, and i'm getting this error when i do ./configure:

Quote:

checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find GTK: Is gtk-config in path?
mark@linux:~/bin/xmms_speakers-2.01>
I believe i do have GTk installed.

It says something about a gtk-config in path? I'm not exactly sure what that means.
Can someone help me figure this out?

Thanks

bigrigdriver 07-28-2005 08:57 PM

Your PATH is a listing of directories that bash will search, in sequence, for files. If the directory which contains gtk-conf isn't in your path, your attempt will fail.

How to fix this?

One way is via command line: something like PATH=$PATH:</path/to/gtk-conf>; export PATH.

The easiest way: edit /etc/ld.so.conf, add the path to gtk.conf. Then, from command line, issue the command 'source /etc/ld.so.conf' (without quotes) to reload the PATH environment. You may have to su to root for the source and install commands to work, as well as to edit the /etc file.

Then try again to install xmms-speakers.

minm 07-28-2005 11:37 PM

hey
when i type:
mark@linux:~> locate gtk.conf

i don't get any result

i know i have gtk installed though

minm 07-30-2005 02:42 AM

Ok, i even did an updatedb command and searched for it, still nothing

__J 07-30-2005 06:23 AM

gtk-config is a script that comes with the older gtk libs ( the one you want is gtk-1.2.10). don't confuse this with gtk-2.x, they are two different versions of the same library but not compatible ( but they can both coexist on the same system without conflicts). open up Yast, and search for gtk, look for a package called gtk-1.2.x-devel ( or something similar), it will contain the gtk-config script you need.

minm 07-30-2005 12:04 PM

alright, i search for it, everything that has the word gtk is installed (including gtk2, and gtk2-devel) however, i don't even see a gtk-1.2.x-devel anywhere

I tried searching for it on google, and i couldn't find it on the gtk site

anymore suggestions?

cthinh 07-30-2005 07:36 PM

I have the same fault when ./configure xine player .I don't know why?.

__J 08-01-2005 10:40 AM

Quote:

Originally posted by minm
alright, i search for it, everything that has the word gtk is installed (including gtk2, and gtk2-devel) however, i don't even see a gtk-1.2.x-devel anywhere


remember, gtk-2 is completely different and it doesn't matter whether you have it installed or not. unfortunately, I cannot help you as i don't use suse, maybe head over to the novell/suse forums and see if anyone there knows the exact name of the package. surely if you find a suse 9.2 repository on the net, it will have gtk-1.2 ( and -devel) packages since these are standard libraries that more or less every distro contains.


All times are GMT -5. The time now is 09:14 AM.