Red Wine in a GlassHow to Install Wine on Mageia 8CSS HTML Validator Logo
HOME Tutorials & Essays About
Tutorials & Essays About

August 16, 2021

Mageia 8 screen shot

How to Install Wine on Mageia 8

Contents

Wine

PlayOnLinux

Reference

Installing Wine in Mageia 8New Window Icon

Wine

Mageia offers only Wine Stable.
Wine Development and Wine Staging are not available.

Enable 32-bit repositories

A full installation of Wine supports both 64-bit and 32-bit Windows apps. In Mageia, 32-bit repositories are not enabled by default, so, before installing Wine, the 32-bit repositories must be enabled.

Begin by locating and clicking the Mageia Control Center icon Mageia Control Center icon. It will be found in a task bar or, as with the GNOME desktop, it will be revealed by clicking Activities.

After clicking the Mageia Control Center icon, enter the root password.

When the Mageia Control Center panel opens, click Configure media sources for install and update.

Add check marks in the Enabled column for these four mirror lists.

After adding the check marks, click the Add button, and then the Yes button.

Wait for the installation of the new repositories to complete.

When done, click OK, which returns you to Mageia Control Center.

Install Freetype 32-bit

FreeType is a popular software development library used to render text onto bitmaps https://en.wikipedia.org/wiki/FreeType

Mageia installs Freetype 64-bit by default. Wine also requires Freetype 32-bit. For example, the command $ wine clock fails if Freetype 32-bit is absent.

Continuing in Mageia Control Center, click Install & Remove Software.

Mageia Control Center screen shot

Ensure that the two drop-down menus below Software Management are both set to All.

In the search field, enter freetype and press the Enter key.

Click the checkbox for libfreetype6.

Click, in sequence, OK, Apply, and Yes.

Wait for Packages installation to complete the installation.

Install libmesagl1 and libmesaglu1

libmesagl1 and libmesaglu1 are graphics libraries.

Continuing in Install & Remove Software

Ensure that the two drop-down menus below Software Management are both set to All.

In the search field, enter libmesagl and press the Enter key.

Click the checkbox for libmesaglu1.

Click OK.

Verify that a checkbox for libmesagl1 has been automatically checked.

Click, in sequence, Apply and Yes.

Wait for Packages installation to complete the installation.

Install libjpeg8

libjpeg8 is a library for manipulating JPEG image files.

Continuing in Install & Remove Software

Ensure that the two drop-down menus below Software Management are both set to All.

In the search field, enter libjpeg8 and press the Enter key.

There may be more than one version of libjpeg8. Click the checkbox for the most recent version.

Click, in sequence, Apply and Yes.

Wait for Packages installation to complete the installation.

Install Wine Stable

Continuing in Install & Remove Software

Ensure that the two drop-down menus below Software Management are both set to All.

In the search field, enter wine and press the Enter key.

Click the checkbox for either wine64 or wine, but not both.

If you choose wine64, your Wine installation will be able to run both 64-bit Windows apps and 32-bit Windows apps, which is what most people want. If you choose wine, Wine will be able to run 32-bit Windows apps but not 64-bit Windows apps, which is appropriate for a computer having only 32-bit hardware.

Do not click any other box. All dependencies, such as wine-gecko and wine-mono, will be installed automatically.

After clicking either wine64 or wine, click, in sequence, OK, Apply, and Yes.

Wait for Packages installation to complete the installation. Then click the Quit button.

Close Mageia Control Center.

Open a Terminal window and issue the following command to verify a successful installation.

$ wine --version

PlayOnLinux

PlayOnLInux is an optional app with a graphical frontend for Wine. Some people like it very much for its graphical frontend, which enables using Wine without having to go into a Terminal window.

Before installing PlayOnLinux, the repositories and packages included in the Wine installation must have been installed

Installing Wine as described above, prior to installing PlayOnLinux, is a good way to ensure this requirement is met.

A recent upgrade of wxgtk3.1 breaks PlayOnLinux. If, after installation, nothing happens when the PlayOnLinux launcher is clicked, apply the workaround described below.

With the workaround in place, PlayOnLinux is fully functional.

Enable the Mageia 8 Core Updates Testing repository

Locate and click the Mageia Control Center icon Mageia Control Center icon.

After clicking the Mageia Control Center icon, enter the root password.

When the Mageia Control Center panel opens, click Configure media sources for install and update.

Add a check mark in the Enabled column for Mirror list Core Updates Testing.

After adding the check mark, click the Add button, and then the Yes button.

Wait for the installation of the new repository to complete.

Click OK, which returns you to Mageia Control Center.

Install PlayOnLinux

Continuing in Mageia Control Center, click Install & Remove Software.

Mageia Control Center screen shot

Ensure that the two drop-down menus below Software Management are both set to All.

In the search field, enter playonlinux and press the Enter key.

Under the heading Package, click on the text "playonlinux" (not the checkbox).

Read the Notice that appears in the bottom panel.

If you decide to continue, click the checkbox for playonlinux.

Click, in sequence, OK, Apply, and Yes.

Wait for Packages installation to complete the installation.

Click the Quit button, which returns you to Mageia Control Center.

Close Mageia Control Center.

PlayOnLinux should be listed in the Applcations panel. If it is not immediately apparent, do a search for "playonlinux". Once found, right-clicking it may allow you to make it available from Favorites, a taskbar, or your Desktop.

Workaround – in case PlayOnLinux fails to execute

Bug 29291 - playonlinux
https://bugs.mageia.org/show_bug.cgi?id=29291New Window Icon
Aurelian R 2021-07-26 22:21:41 CEST
Updating wxgtk3.1 from the "Core Release" repo to version(wxgtk3.1-3.1.5-1.mga8) from "Core Updates Testing" breaks PlayOnLinux. The workaround is to downgrade wxgtk to the release version.

$ sudo urpmi --downgrade --media "Core Release" wxgtk3.1

As described in this extract from the bug report, an upgrade of wxgtk3.1 breaks PlayOnLinux, and the workaround is to downgrade wxgtk3.1 to the previous version. Here is the fix.

You may first need to enable sudo for yourself. You can test sudo by opening a Terminal window and executing

$ sudo echo Hello

If this command does not respond by displaying Hello, you enable sudo for yourself by executing the following (with username replaced by your login name).

$ su -l
# usermod -aG wheel username
# exit

Close the Terminal window

To activate the change, reboot your computer.

After your computer reboots, open a Terminal window and execute

$ sudo urpmi --downgrade --media "Core Release" wxgtk3.1

Respond y twice to prompts for permission to continue.

Close the Terminal window when the downgrade is complete.

After another reboot of Mageia, PlayOnLinux will execute normally when its icon PlayOnLinux icon is clicked (or double-clicked, whichever is appropriate).


Facebook Logo   Twitter Logo  Reddit Logo   Quora Logo

Consider sharing your experience

Did you find this page helpful? Have constructive feedback? Wisdom to share?

Send email to Email Address
Privacy Policy

A.Z. (initials or other identifier) (date will be here)

… (your comment appears here) …