Package x11 not found in pkg-config search path

Mike A. Harris mharris at mharris.ca
Wed Jun 21 23:59:28 PDT 2006


J. Hart wrote:
> I am trying to build X11R7.1 using the following procedure :
> -------------------------------------------------------------------------------- 
> 
> topdir=/home/jhart/linuxfrmsrc
> cd $topdir
> rm -fr tarballs modular build.log
> mkdir tarballs
> pushd tarballs
> SVPATH=$PATH
> PATH=$topdir/modular/bin:$PATH
> cp -r $topdir/archives/xorg_X11R7.1/* .
> cp ../archives/build-from-tarballs.sh .
> chmod +x build-from-tarballs.sh
> ./build-from-tarballs.sh $topdir/modular 2>&1 | tee $topdir/build.log
> unset PKG_CONFIG_PATH
> PATH=$SVPATH
> unset SVPATH
> popd
> rm -fr tarballs build.log
> -------------------------------------------------------------------------------- 
> 
> 
> 
> I get the following error which terminates the build :
> -------------------------------------------------------------------------------- 
> 
> checking for XEXT... configure: error: Package requirements (xproto x11 
> xextproto xau) were not met:
> 
> Package x11 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `x11.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'x11' found
> 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
> 
> Alternatively, you may set the environment variables XEXT_CFLAGS
> and XEXT_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> -------------------------------------------------------------------------------- 
> 
> 
> Does anyone know what is going wrong here ?

The error indicates that x11.pc can't be found, which means that either
you have libX11 installed into a nonstandard location (a custom build
that overrides default locations perhaps), or you do not have the
development packages installed for libX11, etc.

If you're using Fedora Core:

yum install libX11-devel xorg-x11-proto-devel libXau-devel

or similar instructions for dpkg based distros, using apt.  If you're
not using rpm or dpkg based X installation, then you need to use your
distribution's installation method to install the X development
packages, or manually install them from source or whatever is most
appropriate.


-- 
Mike A. Harris  *  Open Source Advocate  *  http://mharris.ca
                       Proud Canadian.



More information about the xorg mailing list