Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded the wine-1.4-rc5.tar.bz2. I ran the tools/wineinstall in terminal. After some time I get this error.

checking for X... no configure: error: X development files not found.
Wine will be built without X support, which probably isn't what you
want. You will need to install development packages of Xlib/Xfree86 at
the very least. Use the --without-x option if you really want this.

Configure failed, aborting install.

The installation won't finish. Can I fix this and make Wine install ?

share|improve this question
Do you want compile wine? Why? – BuZZ-dEE Sep 16 '12 at 15:51
@Eliah "wine1.3 / 1.4-0ubuntu1~ppa1~lucid1", wine1.3 is wine 1.4 in the lucid ppa? – BuZZ-dEE Sep 16 '12 at 16:22
@BuZZ-dEE You're right, it is--the version number, and contents of the VERSION file in the upstream source archive linked to from the PPA page, confirm this. Subin, I recommend following BuZZ-dEE's advice unless you have specific needs that require you to compile from source. If BuZZ-dEE's answer does turn out to be the one that helps you the most--which I suspect it will--then I recommend unaccepting my answer and accepting BuZZ-dEE's. – Eliah Kagan Sep 16 '12 at 17:01
up vote 6 down vote accepted

Most people should either install Wine through Ubuntu's official repositories, or using the Wine project's official Wine PPA.

However, if you want to build and install Wine from source, you should be able to do so.

  • This may make sense if you want to install a later version of Wine than is provided for your Ubuntu release. However, as BuZZ-dEE has pointed out, although there is no wine1.4 package for Ubuntu 10.04 in the official PPA, the wine1.3 package actually provides version 1.4. (This is indicated by the complete version number--1.4-0ubuntu1~ppa1~lucid1--and can be verified by looking in the file called VERSION in the wine1.3_1.4.orig.tar.gz file linked here.)

    Therefore, Buzz-dEE's answer is god advice; I recommend you just use that package, unless you have specific needs that require your to compile from source. (Or you want to use the unstable 1.5 version, which is not provided for Lucid.)

    However, if for any reason you wish to build from source, please read on.

You will need the development packages that provide header files for the libraries it uses. That's the cause of the error message you're getting.

To resolve this particular error, you'll need the package called libx11-dev.

-dev packages provide header files. libx11-dev is not the only such package you'll need, to compile Wine from source. I recommend taking a look at the build dependencies for the development version of Wine in Ubuntu. (Scroll down to where it says "Build dependencies.") That should give you a good idea of which -dev packages you'll need to install, for Wine to be able to compile.

If you use 64bit version of Ubuntu, this error message may appear if you're trying to compile 32bit wine, so you'll need some 32bit libraries to do it: libx11-dev:i386 and libfreetype6-dev:i386

share|improve this answer
Thanks, it was the 64/32-bit issue that did it for me. – Mu Mind Mar 8 '14 at 18:46

If you have the source repositories enabled, you would have more luck if you use:

sudo apt-get build-dep wine

It installs all the dependencies of Wine. If you only need to solve the X error:

sudo apt-get install xorg-dev libx11-dev
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.