|

How to Install Wine 32-bit on CentOS 8

Since version 7, RHEL and CentOS only have 64 bit versions. For some reasons, it’s better to run many Windows applications under 32 bit wine. Like How to Install Wine 32-bit on CentOS 7, this post introduce how to install 32-bit Wine on CentOS 8.

Most of the mechanisms are similar yet there are differences. The idea is to build both the 64-bit and 32-bit Wine from the source package following the specific order of 64-bit -> 32-bit -> 64-bit. In this post, we give a quick tutorial on how to do that on CentOS 8. The fixes to make the script for CentOS 7 work on CentOS 8 to install 32-bit Wine is contributed by Mika Knuutila.

Download install-wine-i686-centos8.sh

Download the script for installing Wine 32-bit on CentOS 8: install-wine-i686-centos8.sh.

Execute the script as root

Run as root or through sudo:

# ./install-wine-i686-centos8.sh

The process may take some while. Please be patient. One example output is as follows.

Hello there. Start to download, build and install wine 5.0 32-bit version...
Logs are in /tmp/install-wine.BsQMcC.log
Enabling needed repos and update...
warning: /var/cache/dnf/AppStream-a520ed22b0a8a736/packages/conmon-2.0.6-1.module_el8.1.0+272+3e64ee36.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) <security@centos.org>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Uninstall old wine if you have installed it...
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020191114033549:073fa5fe-0.x86_64
 Problem 2: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020191113222731:16b3ab4d-0.x86_64
No packages marked for removal.
Install wine building tools...
warning: /var/cache/dnf/epel-6519ee669354a484/packages/ImageMagick-6.9.10.86-1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY
Importing GPG key 0x2F86D6A1:
 Userid     : "Fedora EPEL (8) <epel@fedoraproject.org>"
 Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Download and unpack the wine source package...
--2020-03-27 10:28:23--  http://dl.winehq.org/wine/source/5.0/wine-5.0.tar.xz
Resolving dl.winehq.org (dl.winehq.org)... 151.101.130.217, 151.101.194.217, 151.101.2.217, ...
Connecting to dl.winehq.org (dl.winehq.org)|151.101.130.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22469428 (21M) [application/x-xz]
Saving to: ‘wine-5.0.tar.xz’

wine-5.0.tar.xz             100%[===========================================>]  21.43M  10.6MB/s    in 2.0s    

2020-03-27 10:28:25 (10.6 MB/s) - ‘wine-5.0.tar.xz’ saved [22469428/22469428]

Build wine...
   build wine64...
../../../tools/wrc/parser.y: warning: 5 shift/reduce conflicts [-Wconflicts-sr]
../../../tools/wrc/parser.y: warning: 5 shift/reduce conflicts [-Wconflicts-sr]
../../../dlls/jscript/parser.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
../../../dlls/jscript/parser.y: warning: 18 reduce/reduce conflicts [-Wconflicts-rr]
../../../dlls/msi/sql.y: warning: 1 reduce/reduce conflict [-Wconflicts-rr]
warning: can't write value of type 12 yet
../../../dlls/vbscript/parser.y: warning: 10 shift/reduce conflicts [-Wconflicts-sr]
../../../dlls/vbscript/parser.y: warning: 10 shift/reduce conflicts [-Wconflicts-sr]
../../../programs/winedbg/dbg.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
../../../programs/winedbg/dbg.y: warning: 1 reduce/reduce conflict [-Wconflicts-rr]
../../../programs/winedbg/dbg.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
../../../programs/winedbg/dbg.y: warning: 1 reduce/reduce conflict [-Wconflicts-rr]
   build wine32...

configure: WARNING: libxslt 32-bit development files not found, xslt won't be supported.
../../../dlls/jscript/parser.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
../../../dlls/jscript/parser.y: warning: 18 reduce/reduce conflicts [-Wconflicts-rr]
../../../dlls/msi/sql.y: warning: 1 reduce/reduce conflict [-Wconflicts-rr]
warning: can't write value of type 12 yet
../../../dlls/vbscript/parser.y: warning: 10 shift/reduce conflicts [-Wconflicts-sr]
../../../dlls/vbscript/parser.y: warning: 10 shift/reduce conflicts [-Wconflicts-sr]
../../../programs/winedbg/dbg.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
../../../programs/winedbg/dbg.y: warning: 1 reduce/reduce conflict [-Wconflicts-rr]
../../../programs/winedbg/dbg.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
../../../programs/winedbg/dbg.y: warning: 1 reduce/reduce conflict [-Wconflicts-rr]
Install wine...
   install wine32...
   install wine64...
Congratulation! All are done. Enjoy!

After this, the installation succeeded. You may verify whether the files are 32-bit ones as follows.

Verify the installation results

You can check and verify the version of Wine.

$ wine --version
wine-5.0
$ cat /etc/redhat-release 
CentOS Linux release 8.1.1911 (Core) 

You can also verify the executable files are indeed 32-bit ones.

$ file `which wine`
/usr/local/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=7f7796ad7a52886e9fd45b8b655d9ef10d6ad4ab, with debug_info, not stripped
$ file `which wine64`
/usr/local/bin/wine64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=e9777dabcd55b06e39e94a60afa6c20f789cb742, with debug_info, not stripped

Similar Posts

  • VirtualBox report “Kernel driver not installed” on Fedora 21

    VitualBox is installed on Fedora 21 by # yum install VirtualBox The following packages are installed kmod-VirtualBox-3.18.7-200.fc21.x86_64-4.3.20-4.fc21.4.x86_64 VirtualBox-4.3.20-3.fc21.x86_64 There is the kernel modules package installed. However, when running virtualbox (after reboot), it reports: [zma@laptop:~]$ virtualbox WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (3.18.7-200.fc21.x86_64) or…

  • | |

    Linear Consistency Model for Computer Systems

    Linear consistency models are crucial in ensuring reliability and coherence in distributed computer systems. These models help manage how systems handle data and operations across multiple nodes, ensuring consistency without sacrificing performance. What is a Linear Consistency Model? In distributed computing, a linear consistency model ensures that operations on distributed data appear as if they…

  • How to get a FILE pointer from a file descriptor and how to get a file descriptor from a FILE pointer in C on Linux?

    I would like to open files by open() directly. But how to get a FILE pointer from a file descriptor in C on Linux? And how to do the reverse direction: get a file descriptor from a FILE pointer? Get a FILE pointer from a file descriptor (e.g. fd) in C on Linux: FILE *file…

  • |

    How to Install Xen on Fedora as Domain-0 (Fedora 17)

    The new development of Xen and Linux kernel make it easy to install Xen on Fedora as the Domain-0 now. This post uses Fedora 17 as an example platform to introduce how to set up Domain-0 on Fedora Linux. Compared to our old method (https://www.systutorials.com/setting-up-stable-xen-dom0-with-fedora-xen-3-4-3-with-xenified-linux-kernel-2-6-32-13-in-fedora-12/) which requires manually compiled Xen and patched kernel, the current…

  • How to change strings in MySQL tables

    How to change strings in MySQL tables? e.g. I want to change domain.com to www.domain.com. Use the REPLACE functions of MySQL: http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace One example is like this: UPDATE table SET field = REPLACE(field, ‘domain.com’, ‘www.domain.com’) WHERE field LIKE ‘%domain.com%’ The WHERE clause is not needed but can make execution faster. Read more: How to find…

  • Chinese Charactor Configuration on Fedora 11

    最新的更新版本请看: Fedora 中文字体设置. 使用Linux时我个人倾向使用英文环境系统,而Fedora11在英文环境下中文字体有时会不太好看,经常遇到需要字体优化美化的问题。 以下是我的配置方案,经测试效果还算不错,解决了Fedora 11 中文字体难看的问题: 方案1:使用uming和ukai字体,即AR PL UMing CN等。 关键是使用的字体包如下: 首先要安装这两个字体: cjkuni-ukai-fonts cjkuni-uming-fonts 然后配置一下~/.fonts.conf文件. 使sans-serif serif monospace字体中文使用uming/ukai即可. 我的.fonts.conf文件可以从这里下载(两种选择, 我喜欢前者): https://github.com/zma/config_files 使用Liberation和uming/ukai字体: .fonts.cofn.liberation 使用dejavu和uming/ukai字体: .fonts.conf.dejavu 下载后放到自己的$HOME下改名为.fonts.conf就可以了。 使用uming字体效果如下(请放大后看效果): 方案2:安装文泉驿字体,这个非常简单,安装相应包即可了。 如果喜欢其它的字体选择性的安装上就可以了,只要注意只安装自己需要的就行了。有人使用微软雅黑字体,首先这是侵权的,其次开源的字体做得其实已经很不错了。 最后将字体平滑选项打开, KDE和gnome都有相关设置方法。 以上内容只是针对使用xft字体系统的设置。对于使用核心字体系统的X程序来说字体依然会出现很丑的情况。 下面是针对emacs的设置方法: 首先需要安装这个字体包: xorg-x11-fonts-misc 注意到在中文系统下emacs的中文显示非常好,而在英文环境中去非常差,我们可以利用这一点,在运行emacs前首先将系统环境设为中文即可。 在~/bin/下建立一文件ema 内容如下: #!/bin/bash rm -f ~/.emacs ln -s ~/.emacs.x ~/.emacs LANG=zh_CN.UTF-8 emacs –fullheight -r $* 然后加入执行权限即可: chmod +x…

4 Comments

  1. amazing! can i install wine 64 beside this one? I want to launch steamcmd (32bit) then run a “Rust” (64bit) Server : )

  2. Thank you soooo much! Had to change a few things to get it work, but still brilliant!

  3. centos uses powertools and rhel8 uses codeready; case-sensitivity does nothing to change that. this tutorial is only for centos.

Leave a Reply

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