LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Ok I,m having problems with Make Depend and pkg-config (http://www.linuxquestions.org/questions/linux-from-scratch-13/ok-i-m-having-problems-with-make-depend-and-pkg-config-918191/)

spiky0011 12-11-2011 11:42 AM

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

druuna 12-12-2011 04:24 AM

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.

spiky0011 12-12-2011 10:46 AM

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)

druuna 12-12-2011 11:48 AM

Hi,
Quote:

Originally Posted by spiky0011 (Post 4547983)
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.

spiky0011 12-12-2011 12:02 PM

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"

druuna 12-12-2011 12:20 PM

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.

spiky0011 12-12-2011 12:30 PM

Thks drunna

druuna 12-12-2011 12:36 PM

You're welcome :)


All times are GMT -5. The time now is 09:20 PM.