LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-14-2011, 01:57 AM   #1
Quon
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Rep: Reputation: 0
"pkg-config not found" error when trying to build makedepend (needed for Xorg).


I'm trying to build makedepend from here:http://www.linuxfromscratch.org/blfs...akedepend.html, but when I run configure I get the this error
Code:
configure: 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
path to pkg-config.

Alternatively, you may set the environment variables X_CFLAGS
and X_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I do not have pkg-config installed.
I could not find pkg-config in the LFS 7 book at all, but it is in the LFS 7 rc1, so I tried the instructions from LFS 7 rc 1 (http://www.linuxfromscratch.org/lfs/...kg-config.html), but when I run make I get this error

Code:
make[2]: Entering directory `/sources/pkg-config/pkg-config-0.26'
gcc -DHAVE_CONFIG_H -I. -DPKG_CONFIG_PC_PATH="\"/usr/lib/pkgconfig:/usr/share/pkgconfig\"" -DPKG_CONFIG_SYSTEM_INCLUDE_PATH="\"/usr/include\"" -DPKG_CONFIG_SYSTEM_LIBRARY_PATH="\"/usr/lib\"" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I./popt   -g -Wall -O2 -g -O2 -MT pkg.o -MD -MP -MF .deps/pkg.Tpo -c -o pkg.o pkg.c
In file included from pkg.c:25:0:
pkg.h:23:18: fatal error: glib.h: No such file or directory
compilation terminated.
make[2]: *** [pkg.o] Error 1
make[2]: Leaving directory `/sources/pkg-config/pkg-config-0.26'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/pkg-config/pkg-config-0.26'
make: *** [all] Error 2
 
Old 11-14-2011, 08:27 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Because you don't have glib installed. pkg-config prior to version 0.26 shipped with a copy of glib.h that was sufficient to build pkg-config. That is not the case with 0.26. If you follow the pkg-config instructions in the stable BLFS documentation, it will tell you glib is a dependency.

On the other hand, makedepend is not required to install Xorg if all you want is a GUI (at least it didn't used to be). Of course, you will need glib if you plan to use GTK2.

Last edited by weibullguy; 11-14-2011 at 08:28 PM. Reason: Added caveat
 
  


Reply



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
[SOLVED] configure: error: makedepend is required to build Mesa ghantauke Linux - Software 3 06-04-2011 05:07 AM
pkg-config not found after install GTK makaveli_0000 Linux - Software 5 01-13-2007 05:10 PM
pkg-config, gaim.pc not found ncharoe Linux - Newbie 12 01-15-2005 11:07 AM
pkg-config problem, gaim.pc not found ncharoe Linux - Software 1 01-12-2005 01:20 PM
can't download pkg-config?...newer version needed... breezewax Linux - Software 1 09-06-2004 10:07 PM

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

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