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'm not familiar with compiling software from source.

I would like to test a patched version of Wine following this procedure.

I already have Wine installed and do not wish to modify it. I just want to have a secondary installation with a patched Wine.

How do I go about doing this?

share|improve this question
This is a different issue. That other question was for normal binary pre-compiled versions of wine. This is about compiling and using a patched version of wine. – To Do Feb 25 '13 at 13:17
up vote 5 down vote accepted

If you have Wine installed through package management, the wine binary is located in /usr/bin. Then just compile the patched Wine version.

You can apply the patches and compile Wine. After the following two commands you can test Wine from the build directory:


To install Wine (optional if you plan on running Wine from the build directory). If you run this command, thewine binary usually installs to /usr/local/bin. If you want to define the install location, you can use the configure parameter, for example: ./configure --prefix=/opt/wine157 which installs Wine to /opt/wine157

sudo make install

Example (on 64 bit system):

tar -xvf wine-1.5.7.tar.bz2
cd wine-1.5.7
patch -p1 < 0001*.txt
patch -p1 < 0002*.txt
./configure --enable-win64

To show the Wine version from the build directory:

./wine64 --version


sudo make install


sudo make uninstall


share|improve this answer
i've encounter some issues when building, i.e. error: ‘YYLEX’ undeclared (first use in this function), do you have any idea on how to fix this? (using bison 2.7.1, as suggested on forums, does not help...). thanks in advance – Eliran Malka Jun 29 '14 at 15:59

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.