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?

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

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):

wget http://mirrors.ibiblio.org/wine/source/1.5/wine-1.5.7.tar.bz2
tar -xvf wine-1.5.7.tar.bz2
cd wine-1.5.7
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.5.7/0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.5.7/0002-Re-generate-some-files.txt
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


  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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