Wine 32bit Installation on Centos 7

Posted on

This guide will teach you to Install Wine 32bit Wine 1.8 On Centos 7
Since version 7, RHEL has only x86-64 version. The same for CentOS 7. In CentOS 7/EPEL, there is only package for Wine x86-64. However, many Windows .exe files are 32bit. Even there are 64bit versions for some software, their installation file is 32bit. And for some certain software such as Office 2007, 32bit wine is preferred.

In this post, i will try to install Wine 32bit 1.8 on CentOS 7. I will use Wine 1.8.5 as the example.

Erase old wine versions installed

If you ever installed wine packages, erase them first as we will build wine from the source.

Install packages needed to build wine

We are going to install the packages needed to build wine. These may not be sufficient depending on your base installation packages. If later steps complain that some packages are missing, you can install them.

Download and unpack the source package

Here, we use a variable $ver to specify the version we want to install. It will be used in later steps too.

Build wine 32bit and 64bit versions

Make directories for building wine 32bit and 64bit versions.

Build the 64-bit version first as 32-bit version building depends on it.

Build the 32bit version now.

Install wine 32bit and 64bit versions

Now, we can install Wine. The trick is to install 32-bit version first and then the 64-bit version.
As we are still in the win32 directory, run

Install the 64-bit version:

By now, if everything goes well, you have successfully installed the Wine 32-bit and 64-bit versions. You may double-check it with the file command:

Note the “ELF 32-bit” and “ELF 64-bit” in the file type strings.
Now you can run your 32-bit Windows application on CentOS 7. Enjoy 🙂

Installation Script

If you need Installation Script, you can copy paste code bellow or from Github

Harris Marfel (hrace009) - Memberikan informasi dan Tutorial yang bermanfaat untuk para pemula, dan semua tutorial yang disajikan kami berikan secara gratis!

3 thoughts on “Wine 32bit Installation on Centos 7

  1. Many Thanks!
    To compile the 32-bit version, I also needed

    yum install -y glibc-devel.i686 libstdc++-devel.i686

  2. Hello, get make install error on 32bit version, but not on 64bit version.
    Error is :

    make[1]: *** [] Erreur 2
    make[1] : on quitte le répertoire « /usr/src/wine-4.16/wine32/dlls/setupapi »
    make: *** [dlls/setupapi] Erreur 2

    Other steps go fine

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.