LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2006, 08:00 PM   #1
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Rep: Reputation: 0
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?
 
Old 04-13-2006, 08:46 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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.
 
Old 04-13-2006, 10:06 PM   #3
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
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?

Quote:
If not, then add it.
Okay, where?
 
Old 04-13-2006, 10:51 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Check this for me:

echo $PKG_CONFIG_PATH

you may also want to try

man pkg-config

jic.
 
Old 04-14-2006, 05:47 PM   #5
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
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?
 
Old 04-15-2006, 02:34 AM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
Old 04-15-2006, 10:05 AM   #7
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
Hey, that did the trick! Good deal, thanks very much you guys.

Cheers,
fk
 
Old 06-15-2006, 10:58 PM   #8
SpelledJ
Member
 
Registered: Jun 2006
Location: Birmingham, AL
Distribution: Slackware64-13.1, 12.1
Posts: 119

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


Reply

Tags
gtkpod, pkgconfig



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
How to ensure the connectivity in network? pcy Red Hat 1 03-17-2006 02:27 AM
Autozipping files from 1 directory & dropping them in other directory ??? amitsharma_26 Linux - Networking 5 10-22-2005 06:09 AM
copy files from directory to directory without subfile ALInux Linux - General 2 06-03-2005 11:51 AM
Automatically Copying files from the ftp directory into the html directory swatward Linux - General 3 04-17-2005 10:55 PM
how to ensure only one record exist with the same name. meluser Programming 5 03-18-2003 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:35 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
Open Source Consulting | Domain Registration