Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
|
04-13-2006, 09:00 PM
|
#1
|
LQ Newbie
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19
Rep:
|
When configuring files, how do I ensure they get to the right directory?
Hello,
I'm new to Linux and Slackware (glad to be here), and have a question about installing and configuring files. I'm trying to install a program (gtkpod), which is telling me I'm missing a library (libgpod). I downloaded and configured the library and it looks like it automatically went to my /usr/local/lib directory. So I tried configuring the original program again and it's still telling me it can't find the library. Here's the message I get:
Package libgpod-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgpod-1.0.pc'
to the PKG_CONFIG_PATH environment variable
I'm stumped. Can someone please point me in the right direction?
|
|
|
04-13-2006, 09:46 PM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
First up: welcome to linux.
You have chosen Slackware Linux - this is one of the toughest distributions for newcomers to learn, however, all the skills you are learning are generally applicable so, should you stick with it, you will find yourself getting very good indeed.
Quote:
Package libgpod-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgpod-1.0.pc'
to the PKG_CONFIG_PATH environment variable
|
... you have been using a config script, correct?
Open the script in a text editor, and look for a line that starts: PKG_CONFIG_PATH=
... this is the list of locations that the script looks for the package. You'll probably find that /usr/local/lib isn't on there.
If not, then add it.
If it is, then this suggests that the package did not end up there automatically and you need to go look for it.
|
|
|
04-13-2006, 11:06 PM
|
#3
|
LQ Newbie
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19
Original Poster
Rep:
|
Thanks for the Welcome. It's pretty tough sometimes but I'm having a lot of fun. I chose Slackware because I wanted to understand how everything works and learn to do everything manually to get a good feel for it. Slackware seemed to be the way to go.
Quote:
... you have been using a config script, correct?
|
Yes, and I opened the config.log and didn't see PKG_CONFIG_PATH= but saw this:
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config and this:
PKG_CONFIG='/usr/bin/pkg-config' and this:
ac_pt_PKG_CONFIG='/usr/bin/pkg-config'
So it looks like it's not looking in the right spot. Is that correct?
Okay, where?
|
|
|
04-13-2006, 11:51 PM
|
#4
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
Check this for me:
echo $PKG_CONFIG_PATH
you may also want to try
man pkg-config
jic.
|
|
|
04-14-2006, 06:47 PM
|
#5
|
LQ Newbie
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19
Original Poster
Rep:
|
I tried echo $PKG_CONFIG_PATH and nothing happened. But I don't know what that means or what I'm looking for. Am I supposed to be in the gtkpod directory when giving that command?
|
|
|
04-15-2006, 03:34 AM
|
#6
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
No. You should have looked in configure script and add these lines here.
Or you just can run this in console/terminal:
$ export $PKG_CONFIG_PATH=/usr/local/lib
Now run:
$ echo $PKG_CONFIG_PATH
Now, I think you've got the point.
|
|
|
04-15-2006, 11:05 AM
|
#7
|
LQ Newbie
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19
Original Poster
Rep:
|
Hey, that did the trick! Good deal, thanks very much you guys.
Cheers,
fk
|
|
|
06-15-2006, 11:58 PM
|
#8
|
Member
Registered: Jun 2006
Location: Birmingham, AL
Distribution: Slackware64-13.1, 12.1
Posts: 119
Rep:
|
I ran into this same problem trying to compile Amarok with ipod support via libgpod. Rather than monkey with redirecting Amarok's configure script via the $PKG_CONFIG_PATH environment variable, I chose to install libgpod to place it in the proper location for Slackware. Compiling libgpod by starting with
Code:
./configure --prefix=/usr
will put it under /usr/lib upon make install rather than its default /usr/local/lib. You can then run Amarok's (or gtkpod's) configure script without any further issues, and you'll keep all of your libraries in one place.
|
|
|
All times are GMT -5. The time now is 07:43 PM.
|
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
|
|