LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-11-2011, 11:42 AM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Ok I,m having problems with Make Depend and pkg-config


Ok I,m trying to install makedepend an get an error with make
Code:
configure:5094: error: The pkg-config script could not be found or is too old.  Make sure it  
is in your PATH or set the PKG_CONFIG environment variable to the full
I have been over all I can think of. xorg.sh
Code:
XORG_PREFIX=/usr
XORG_CONFIG="--prefix=$XORG_PREFIX \
             --sysconfdir=/etc \
             --mandir=$XORG_PREFIX/share/man \
             --localstatedir=/var"
export XORG_PREFIX XORG_CONFIG
echo $PATH=/usr/local/bin:/bin:/usr/bin:/home/spiky/bin:/sbin
pkgconfig is in /usr/share. & /usr/local/share All files where copy & pasted

Last edited by spiky0011; 12-12-2011 at 02:33 AM.
 
Old 12-12-2011, 04:24 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Did you look at the config.log file for hints/errors/messages concerning pkg-config?

Have you checked the content of PKG_CONFIG_PATH?

Are both /etc/profile.d/extrapaths.sh and /etc/profile.d/X.sh present and correct?

Hope this helps.
 
Old 12-12-2011, 10:46 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Ok it looks like there is something wrong with pkg-config.
Code:
pkg-config --version
pkg-config not found.
Code:
whereis pkg-config
returns pkg-config.
I have looked at the files in profile.d you mentioned they are there and were copy & pasted. I set /usr as prefix ( the easy option)
 
Old 12-12-2011, 11:48 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
Ok it looks like there is something wrong with pkg-config.
Code:
pkg-config --version
pkg-config not found.
Code:
whereis pkg-config
returns pkg-config.
That output does seem incorrect, something like this should show up:
Code:
$ pkg-config --version
0.26
$ whereis pkg-config
pkg-config: /usr/bin/pkg-config /usr/man/man1/pkg-config.1 /usr/share/man/man1/pkg-config.1
Can you confirm /usr/bin/pkg-config is present?
- if so, is your PATH setting correct (does it include /usr/bin)
- if not, did you forget to install pkg-config-0.26

Hope this helps.
 
Old 12-12-2011, 12:02 PM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
hi druuna

Found the problem I hope here I to was following 7rc1 I,m sure I installed pkg-config 0.26. Now all I have to do is reinstall pkg config from blfs with glib. Although the commands are different dose it still install to the same places where the .pc files are. /usr/lib/pkconfig.

I must of missed the error output of pkgconfig when i built it "I guess"
 
Old 12-12-2011, 12:20 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

LFS 7.0rc1 is a release candidate for (pre-dates) LFS 7.0. pkg-config was removed from LFS 7.0 and is at the moment only present in BLFS, which includes the glib dependency.

You can install the BLFS version (first install the glib dependency, if you haven't already), locations of the files will be the same as in the 7.0rc1 version.

Hope this helps.
 
Old 12-12-2011, 12:30 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Thks drunna
 
Old 12-12-2011, 12:36 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You're welcome
 
  


Reply

Tags
lfs, pkg-config, x11, xorg



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 - how do I make a .pc file? needlern32724 Linux - Software 2 07-19-2006 10:33 AM
pkg-config problems RhysBJ Linux - Software 6 06-30-2006 05:37 PM
pkg-config version problems Spooled Linux - Software 0 09-04-2005 04:53 PM
Problems with PKG-Config wmustudent99 Linux - Newbie 2 02-04-2005 04:34 AM
I got problems with pkg-config and pango Boogieman Mandriva 1 09-11-2003 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:29 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