Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

I am using Ubuntu 10.04.

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
2  
@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

4 Answers 4

up vote 1 down vote accepted

There is no need to download the wine source and compile it yourself. You can install it in a terminal.

sudo apt-get install wine

If you need a newer version, you can use the Wine PPA.

sudo apt-add-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine

Note: The newest version for Ubuntu Lucid 10.04 is wine1.3 / 1.4-0ubuntu1~ppa1~lucid1. If you need a newer version, you could update your Ubuntu version to 12.04.

http://www.winehq.org/download/ubuntu

share|improve this answer

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
1  
Thanks, it was the 64/32-bit issue that did it for me. –  Mu Mind Mar 8 at 18:46

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
share|improve this answer

http://wiki.winehq.org/Recommended_Packages?highlight=%28CategoryDevelopment%29

This page contains recommend packages while building wine(32bit).

All you need is

sudo apt-get build-dep wine1.6
share|improve this answer
1  
There are still some more instructions in the link you included. I would suggest you include every step of the installation process here in case that link goes MIA. –  Parto Oct 11 at 8:33

Your Answer

 
discard

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.