LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Location of GTK Libraries and Path question. (https://www.linuxquestions.org/questions/suse-opensuse-60/location-of-gtk-libraries-and-path-question-440158/)

thakis 04-29-2006 08:51 PM

Location of GTK Libraries and Path question.
 
I am somewhat computer literate and have finally decided to try Linux again after about 10 years.

I have Suse 10.0 running Gnome. I installed the GTK libraries using YAST but when I try to compile an application I get this message:
configure: error: Cannot find GTK: Is gtk-config in path?
Where does Suse put the gtk-config library and how do I modify my Path.

My PATH:
/home/thakis/bin
/usr/local/bin
/usr/bin
/usr/X11R6/bin
/usr/games
/opt/gnome/bin
/opt/kde3/bin
/usr/lib/mit/bin
/usr/lib/mit/sbin


Please help and thanks!


thakis

pbhj 04-29-2006 09:13 PM

I'm not a SUSE user but my system (Slackware10.2) returns /usr/bin/gtk-config in response to "which gtk-config" (which searches your path to find a binary). You can also use slocate to find any file (eg "slocate gtk | grep config") but slocate needs to be updated as root (do "slocate -u").

"echo $PATH" shows your current path. Also you may want to look at "export" and "set" (possibly "env" too) if you need to add to your path ... export PATH="$PATH:/usr/path/new"

HTH

pbhj

thakis 04-30-2006 08:01 AM

Quote:

Originally Posted by pbhj
I'm not a SUSE user but my system (Slackware10.2) returns /usr/bin/gtk-config in response to "which gtk-config" (which searches your path to find a binary). You can also use slocate to find any file (eg "slocate gtk | grep config") but slocate needs to be updated as root (do "slocate -u").

HTH

pbhj

I tried the slocate command as root but the terminal indicates that the command is not found. I also tried:
dir -R|grep gtk-config|more
This did not help either. When I check YAST all the developer libraries for GTK are checked but the ones for GTK2 are red not black. What does this mean?


thakis

abisko00 04-30-2006 09:39 AM

Quote:

I tried the slocate command as root but the terminal indicates that the command is not found.
SUSE uses locate (from the findutils-locate package)

Quote:

When I check YAST all the developer libraries for GTK are checked but the ones for GTK2 are red not black. What does this mean?
Red means that the installed package is newer than the files on the original installation medium. They may have been updated during an online update.

On my system, gtk-config is in /opt/gnome/bin and is provided by the gtk-devel rpm.


All times are GMT -5. The time now is 02:28 AM.