How to Install Wine 4.8 (Development Release) in Linux

Wine, a most popular and powerful open source application for Linux, that used to run Windows based applications and games on Linux Platform without any trouble.

WineHQ team, recently announced a new development version of Wine 4.8 (release candidate for the upcoming Wine 5.0). This new development build arrives with a number of new important features and 44 bug fixes.

Wine team, keep releasing their development builds almost on weekly basis and adding numerous new features and fixes. Each new version brings support for new applications and games, making Wine a most popular and must have tool for every user, who want to run Windows based software in a Linux platform.

According to the changelog, following key features are added in this release:

  1. Support building most programs in PE format.
  2. Unicode data updated to Unicode 12.0.
  3. Joystick support improvements.
  4. Default to non-PIC builds on i386.
  5. Various bug fixes.

For more in-depth details about this build can be found at the official changelog page.

This article guides you how to install most recent development version of Wine 4.8 on Red Hat and Debian based systems such as CentOS, Fedora, Ubuntu, Linux Mint and other supported distributions.

Installing Wine 4.8 on Linux

Unfortunately, there are no official Wine repository available for the Red Hat based systems and the only way to install Wine, is to compile it from source.

To do this, you need to install some dependency packages such as gcc, flex, bison, libX11-devel, freetype-devel and Development Tools, etc. These packages are must required to compile Wine from source.

Install Wine on RedHat, Fedora and CentOS

Let’s install them using following YUM command on the respective distributions.

# yum -y groupinstall 'Development Tools'
# yum -y install flex bison libX11-devel freetype-devel libxml2-devel libxslt-devel prelink libjpeg-devel libpng-devel

Next, switch to normal user (here my username is ‘tecmint‘) and download the latest development version of Wine (i.e. 4.8) and extract the source tallball package using the following commands.

# su tecmint
$ cd /tmp
$ wget https://dl.winehq.org/wine/source/4.x/wine-4.8.tar.xz
$ tar -xvf wine-4.8.tar.xz -C /tmp/

Now, it’s time to compile and build Wine installer using the following commands as normal user on respective Linux architectures. If you don’t know your Linux distribution architecture, you can read this article to find out that your Linux System is 32-bit or 64-bit.

Note: The installation process might take up-to 15-20 minutes depending upon your internet and hardware speed, during installation it will ask you to enter root password.

On 32-Bit Systems
$ cd wine-4.8/
$ ./configure
$ make
# make install			[Run as root User]
On 64-Bit Systems
$ cd wine-4.8/
$ ./configure --enable-win64
$ make
# make install			[Run as root User]

Install Wine on Fedora

On Fedora, you can use official Wine repository to install wine packages as shown:

----------- On Fedora 30 -----------
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/30/winehq.repo
# dnf install winehq-devel   [Development branch]
# dnf install winehq-stable  [Stable branch]
----------- On Fedora 29 -----------
# dnf config-manager --add-repo https://dl.winehq.org/wine-builds/fedora/29/winehq.repo
# dnf install winehq-devel   [Development branch]
# dnf install winehq-stable  [Stable branch]

Install Wine On Ubuntu and Linux Mint

Under Ubuntu and Linux Mint based systems, you can easily install the latest development build of Wine using the official PPA.

Open a terminal and run the following commands with sudo privileges to download and add the new key.

$ sudo dpkg --add-architecture i386    [Enable 32-bit Arch]
$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key

Now install Wine on Ubuntu and Linux Mint.

----------------- On Ubuntu 19.04 ----------------- 
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ disco main'
$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

----------------- On Ubuntu 18.10 ----------------- 
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main'
$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

----------------- Ubuntu 18.04 & Linux Mint 19.x ----------------- 
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

----------------- Ubuntu 16.04 & Linux Mint 18.x ----------------- 
$ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

Install Wine On Debian Systems

On Debian systems, you should follow below instructions to install latest WineHQ development builds.

First, enable 32-bit packages, then download and install key which is used to sign packages.

$ sudo dpkg --add-architecture i386  [Only on 64-bit systems]
$ wget -nc https://dl.winehq.org/wine-builds/winehq.key
$ sudo apt-key add winehq.key

Next, add the following repository to /etc/apt/sources.list file as per your Debian version.

----------------- Debian 8 (Jessie) ----------------- 
deb https://dl.winehq.org/wine-builds/debian/ jessie main

----------------- Debian 9 (Stretch) ----------------- 
deb https://dl.winehq.org/wine-builds/debian/ stretch main

----------------- Debian 10 (currently Testing) (Buster) ----------------- 
deb https://dl.winehq.org/wine-builds/debian/ buster main

Now update the package repository database and install WineH! development branch as shown.

$ sudo apt-get update
$ sudo apt install --install-recommends winehq-devel  [Development branch]
$ sudo apt install --install-recommends winehq-stable [Stable branch]

For other Linux distributions, the installation instructions can be found at https://www.winehq.org/download.

How to Use Wine to Start Windows Applications

Once the installation completes successfully, you can install or run any windows based applications or games using wine as shown below.

On 32-Bit Systems
$ wine notepad
$ wine notepad.exe 
$ wine c:\\windows\\notepad.exe
On 64-Bit Systems
$ wine64 notepad
$ wine64 notepad.exe 
$ wine64 c:\\windows\\notepad.exe

Note: Please remember, this is a development build and cannot be installed or used on production systems. It is advised to use this version only for testing purpose.

If you’re looking for a most recent stable version of Wine, you can go through our following articles, that describes how to install most stable latest version on almost all Linux environments.

  1. Install Wine 4.0 (Stable) in RHEL, CentOS and Fedora
  2. Install Wine 4.0 (Stable) in Debian, Ubuntu and Mint
Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

48 Responses

  1. jai shukla says:

    I got another type of error {cannot find L”C:\\windows\\system32\\-h.exe”} i am using 64bit kali linux

  2. otesan says:

    Please help, I am using Linux Ubuntu i have 32-bit and i am at the stage and it says this:

    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 at the very least.
    Use the --without-x option if you really want this.
    
  3. Federico says:

    Excellent guide, thank you very much!,
    I have tried it in Centos 7 and it worked, but I am trying to use wine it for a second time in a new Centos 7×64 and it sends me the following error:

    [[email protected] wine-1.9.19]$ ./configure -enable win64
    configure: error: unrecognized option: `-enable’
    Try `./configure –help’ for more information
    [[email protected] wine-1.9.19]$ ./configure –enable-win64
    checking build system type… x86_64-pc-linux-gnu
    checking host system type… x86_64-pc-linux-gnu
    checking whether make sets $(MAKE)… yes
    checking for gcc… gcc
    checking whether the C compiler works… no
    configure: error: in `/tmp/wine-1.9.19′:
    configure: error: C compiler cannot create executables
    See `config.log’ for more details

    content of config.log
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by Wine configure 1.9.19, which was
    generated by GNU Autoconf 2.69. Invocation command line was

    $ ./configure –enable-win64

    ## ——— ##
    ## Platform. ##
    ## ——— ##

    hostname = federico.scarcasale.cl
    uname -m = x86_64
    uname -r = 3.10.0-514.2.2.el7.x86_64
    uname -s = Linux
    uname -v = #1 SMP Tue Dec 6 23:06:41 UTC 2016

    /usr/bin/uname -p = x86_64
    /bin/uname -X = unknown

    /bin/arch = x86_64
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: /usr/local/bin
    PATH: /bin
    PATH: /usr/bin
    PATH: /usr/local/sbin
    PATH: /usr/sbin
    PATH: /home/fede/.local/bin
    PATH: /home/fede/bin

    ## ———– ##
    ## Core tests. ##
    ## ———– ##

    configure:3679: checking build system type

    configure: exit 77

    • Ravi Saive says:

      @Federico,

      It seems you compiling 64-bit binaries into 32-bit system, please check your Fedora system architecture before compiling, if you don’t know how to check system architecture, read this article Find Linux System Architecture.

      Once you know your system architecture, you can use appropriate instructions to install wine..

  4. matimy says:

    I have Kali Linux 2.0 64-bit when i write ./configure –enable-win64 this will happen.

    configure: error: FreeType 64-bit development files not found. Fonts will not be built.
    Use the --without-freetype option if you really want this.
    
    • Ravi Saive says:

      @Matimy,

      Please install freetype development libraries before compiling wine on Kali Linux..

      # yum install freetype-devel
      Or
      $ sudo apt-get install freetype-devel
      
  5. Marcelo says:

    Error:
    Ign https://dl.winehq.org DISTRO/main Translation-en
    Downloaded 1,211 kB in 21s ( 55.4 kB / s)
    W : Failed to fetch https://dl.winehq.org/wine-builds/debian/dists/DISTRO/main/binary-i386/Packages HttpError404

    E: Failed to download some index files . They were ignored or older were used instead .

  6. Brian says:

    Well these directions are crap! All it did was install it without any shortcuts or anyway to start and run it! I am so sick of half brained people only providing half directions! If your not going to produce full directions then don’t add any!

    • Ravi Saive says:

      @Brian,

      Directions are perfect and till now no any issues, if you are looking Windows kind of shortcuts after install, then I recommend you to stick with Windows..

  7. Rakesh Sharma says:

    I have 32 bit os red hat
    after extract the wine-1.9.0.tar.bz2 On desktop
    I type cmds:
    cd wine-1.9.0/
    And Then
    ./tools/wineinstall

    thats it
    then after I get the error.
    Errors I have written in previous comment.
    please help

    • Ravi Saive says:

      @Rakesh,

      Just install Development Tools as shown:

      # yum groupinstall "Development tools"
      OR
      # yum install gcc
      

      and then try to run the compile command again, it will work without any errors.

  8. Rakesh Sharma says:

    I follow all these steps but can’t install wine.
    I have download wine-1.9.0.tar.bz2
    on Linux red hat 6
    I am following these cmds:
    checking for gcc …..no
    checking for CC ……no
    checking for cl.exe… no
    but configure :error: in ‘/home/user/desktop/wine-1.9.0’:
    configure: error: no acceptable C compiler found in $PATH

  9. devan says:

    i was dowload wine-1.9.7.tar.bz2 from their site and extract it..how to install it?

    • Ravi Saive says:

      @Devan,

      The instructions on how to install wine already explained neatly in this article, have you gone through the all the steps listed in this article?

  10. rafeeque says:

    How to install wine-gecko in redhat linux?

Leave a Reply to Brian Cancel reply

Your email address will not be published. Required fields are marked *

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