LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,642
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
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: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,642
Blog Entries: 1

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
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: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,642
Blog Entries: 1

Original Poster
Rep: Reputation: 229Reputation: 229Reputation: 229
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: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,642
Blog Entries: 1

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

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
You're welcome
 
  


Reply

Tags
lfs, pkg-config, x11, xorg


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 - 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


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