Missing header files
Tim Frost
timfrost at xtra.co.nz
Thu Apr 12 09:17:56 UTC 2007
On Thu, 2007-04-12 at 10:39 +0200, Alain Muls wrote:
> Hi,
>
> I try to compile a program, but the compiler says that header files are
> missing, such as
>
> X11/Xlib.h
>
> How can I find out which package to install, so how can I find out to which
> package a certain file belongs.
packages.ubuntu.com has a search facility that permits this. apt-file
also provides a search facility.
Note that the sources, header files, etc, are in a development package,
which is not installed by default. In most cases, you can install the
packages needed for the build of <package> with
sudo apt-get build-dep <package>
You also need the core files, including the C compiler, installed with
sudo apt-get install build-essential
HTH
Tim
More information about the ubuntu-users
mailing list