LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-05-2012, 04:44 AM   #1
darrenforster99
LQ Newbie
 
Registered: Jul 2005
Location: UK
Distribution: Fedora Core 3
Posts: 11

Rep: Reputation: 0
PKG_CONFIG_PATH incorrect...


I'm currently running Puppy Linux (Slackware) and came across a major problem.

I've been spending hours on the thing now just trying to get some kind of image management software to run (I can run Picasa through Wine, but half the features don't work due to Wine missing something to allow internet access - it did ask me if I wanted to install that extra package - I said yes and still nothing!).

I thought I'll try a genuine Linux image management system. So I've tried to install both Shotwell and DigiKam and I'm not getting very far with either of them. DigiKam kept asking for more and more dependencies... it seemed like a never ending stream of I need this, I need that...

I got Shotwell to install from the Pup Get program and it attempted to install all dependencies. It missed one Libgudev.

Then when I tried to run Shotwell it said I was missing Libgudev, so I got Libgudev and then Shotwell then said it couldn't find Libffi, so I got LibFFI, then it tried running and come up with loads of error messages and from what I can gather from the error messages it was possibly missing glib, so I got glib (yeah we're going into the realm of never ending dependencies AGAIN - if it needs something to run why can't it just be programmed to toddle off to somewhere and go get it??)

I then tried installing Glib and Glib complained that LibFFI was missing (strange this is the same thing that Shotwell complained about and I thought we'd fixed it), it said something about it couldn't find it in PKG_CONFIG_PATH location.

So I re-installed LibFFI, yet again can't find LibFFI - what it's been installed twice, this time though I'd kept an eye on where Make had installed it to.

Make installed it into /usr/local/lib rather than /usr/lib and funny enough all the other dependencies that I'd also been trying to install with DigiKam (and giving up 'cos they weren't installing) were also in there - so that's where they're hiding.

So why is Linux installing all these libraries into the local folder rather than the lib folder, and how do I either a. correct it so it installs them into the lib folder, or b. correct the PKG_CONFIG_PATH to look in the /usr/local/lib folder as well as the /usr/lib folder, I presume the latter is easier.
 
Old 12-05-2012, 06:26 AM   #2
millgates
Member
 
Registered: Feb 2009
Location: 192.168.x.x
Distribution: Slackware
Posts: 651

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by darrenforster99 View Post
So why is Linux installing all these libraries into the local folder rather than the lib folder, and how do I either a. correct it so it installs them into the lib folder, or b. correct the PKG_CONFIG_PATH to look in the /usr/local/lib folder as well as the /usr/lib folder, I presume the latter is easier.
a)
Mostly, when you install packages from source, the destination directory defaults to /usr/local. I think it has something to do with the unix filesystem hierarchy conventions. For example, for software using the GNU autotools, you can change this by specifying the --prefix option to the configure script:

Code:
./configure --prefix=/usr
b)
You can modify the PKG_CONFIG_PATH to include /usr/local/lib like this:

Code:
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
before running configure.

That said, do you have a specific reason to use puppy? I have never used it, but from what I've heard, it seems to be a very lightweight distro, suitable for running on old computers or as a live CD. I would guess it would miss a lot of packages that are commonly installed by default in other distros, so I am not surprised that you have to solve a lot of dependancies.
 
Old 12-05-2012, 12:01 PM   #3
darrenforster99
LQ Newbie
 
Registered: Jul 2005
Location: UK
Distribution: Fedora Core 3
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by millgates View Post
That said, do you have a specific reason to use puppy? I have never used it, but from what I've heard, it seems to be a very lightweight distro, suitable for running on old computers or as a live CD. I would guess it would miss a lot of packages that are commonly installed by default in other distros, so I am not surprised that you have to solve a lot of dependancies.
I use Puppy because it works well with my laptop, have tried other distros like Mint, and Ubuntu, but they don't seem to include drivers straight out the box for my wi-fi card (a Broadcom card built into my Compaq laptop) which then causes problems for applying any updates (or even downloading the drivers for the wi-fi card).

Also it runs pretty damn fast from CD so I can keep my entire hard drive for windows (although I've got to admit the last time I actually used windows on this laptop must have been about 2 years ago now!), the laptop itself is a good few years old, it was one of the first laptops with a 64-bit AMD CPU in it - Presario v5xxx series, ATI mobile radeon, and 1Gb RAM, but it still runs fine under Puppy.
 
  


Reply

Tags
glib, libraries, pkg-config


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Pkg_config_path rlnd Linux - Software 15 03-06-2009 02:26 PM
Incorrect Mouse, Incorrect Keymap, and Trapped in X Kenji Miyamoto Debian 8 08-24-2005 02:42 PM
Pkg_config_path Kiwi UK Linux - Software 5 12-18-2004 01:36 PM
Pkg_config_path box_l Mandriva 3 08-03-2004 04:53 AM
Pkg_config_path kilgore_trout Linux - Software 0 09-08-2003 12:18 PM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration