LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-17-2005, 06:47 AM   #1
Getafix
LQ Newbie
 
Registered: Oct 2004
Location: Israel
Distribution: Debian, CentOS
Posts: 19

Rep: Reputation: 0
gdesklets from source problem


Hi everyone!
when i try to ./configure the gnome-python-2.10.0 i receive this error

No package 'pygtk-2.0' found

configure: error: Library requirements (pygtk-2.0 >= 2.6.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.

the issue is that i already installed pygtk-2.6.0 and ran the updatedb.
I"m sure that i am doing something wrong but i just can't figure out what. Asking google for it didn't help at all. So i hope you will

I am runnning Slackware 10.1
 
Old 05-17-2005, 06:52 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Did you install pygtk yourself? If so, is there a pygtk-2.0.pc somewhere? (usually in /usr/lib/pkgconfig or /usr/local/lib/pkgconfig)

If you do have a pygtk-2.0.pc file then make sure the directory it resides in is in the PKG_CONFIG_PATH system variable.

Last edited by jtshaw; 05-17-2005 at 06:55 AM.
 
Old 05-17-2005, 06:54 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
there are multiple ways of doing things, but remember ./configure, make, make install wil only get you so far, you have to do it correctly.

what you probably need ( this is assuming you installed pygtk with ./configure, make, make install):

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

rerun configure.

you do not need to run updatedb when installing new things. also, if your not already, you might want to make slack packages if you are going to be installing in /usr/local, otherwise removing/upgrading will be more work.
 
Old 05-17-2005, 09:21 AM   #4
Getafix
LQ Newbie
 
Registered: Oct 2004
Location: Israel
Distribution: Debian, CentOS
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you for your advices. I am not so new to linux but using distro's like Ubuntu made me forget hot it's all done "the unix way" . If you can tell me a little bit more about all the "PKG_CONFIG_PATH environment " because i don't get it
 
Old 05-17-2005, 09:50 AM   #5
Getafix
LQ Newbie
 
Registered: Oct 2004
Location: Israel
Distribution: Debian, CentOS
Posts: 19

Original Poster
Rep: Reputation: 0
i will check it when i"ll get home. I have no idea about all the "PKG_CONFIG_PATH environment" . What is it good for? and why should i install in usr/local i"m still thinking windows i am installing everything in /home/ directory
 
Old 05-17-2005, 02:59 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you can install things wherever you want ( keep in mind if you have more than one user, the other users will not be able to use things from you home directory unless you do some tinkering).

the PKG_CONFIG_PATH is an environmental variable that the program pkg-config uses to define it's search path for .pc files. if PKG_CONFIG_PATH is not set, it uses it's own defaults. when you install libraries that use pkg-config outside of /usr, you need to set the variable to include your new directories containing .pc files. there are different ways to set it, each differ on the order the directories are searched:

Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
this sets /usr/local/lib/pkgconfig as the only directory searched

Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
this set /usr/local/lib/pkgconfig as the very first directory searched, notice the variable at the end with the $ in front, the $ will expand it out to whatever PKG_CONFIG_PATH contains

Code:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
notice on this one the variable is in front now, which will expand and add /usr/local/lib/pkgconfig to the end, making /usr/local/lib/pkgconfig the last directory searched.

in this case, the order is not important as long as you have the directory containing the .pc files somewhere in the path. later, if you decide you want to install conflicting versions of things, like say a gnome-2.8 installation and a gnome-2.10 installation on the same machine, the order of environmental variables becomes more important, as you can see above you can force the system to look in one place before another for what it wants, making it easy to force the system to ignore libraries or pick up certain sets of libraries before it finds older libraries. PATH, LD_LIBRARY_PATH, etc... work the same way.
 
Old 05-17-2005, 07:00 PM   #7
Getafix
LQ Newbie
 
Registered: Oct 2004
Location: Israel
Distribution: Debian, CentOS
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks a lot
Learned something usefull today
 
  


Reply



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
Problem with gDesklets rockonkenshin Mandriva 0 10-22-2004 03:59 PM
Serious gDesklets problem kevcart3 Linux - Software 3 10-14-2004 09:23 PM
gDesklets problem? carlosinfl Linux - Software 4 07-26-2004 03:09 PM
gdesklets problem carlosinfl Linux - Software 3 07-24-2004 08:00 PM
GDesklets Problem again!! (Sorry!) kevcart3 Linux - Software 0 06-26-2004 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:44 PM.

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
Open Source Consulting | Domain Registration