# Failed to install Wine on Rocky Linux 9.1 (Part 2)

**URL:** https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181
**Category:** Rocky Linux Help & Support
**Created:** [December 8, 2022, 12:33am UTC](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181 "2022-12-08T00:33:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![andre38](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@andre38](https://forums.rockylinux.org/u/andre38)
#### Post date: [December 8, 2022, 12:33am UTC](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181/1 "2022-12-08T00:33:42Z")

</div>

Hi there!  
First of everything I would like to thank you to try to help me.  
In second place I’m new at Rocky Linux and used to use Ubuntu Linux before.

My Rocky Linux specifications are:  
OS Name: Rocky Linux 9.1 (Blue Onyx)  
OS Type: 64-bit  
GNOME Version: 40.4.0  
Windowing System: Wayland

## I tried installing wine in two different ways.

## First way: [Failed to install Wine on Rocky Linux 9.1](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1/8180)

Second way:

1. First you update your system with ‘sudo dnf update’ and that’s fine.

2. Next you install the Dev Tools with 'sudo dnf groupinstall ‘Development Tools’ and that’s fine.

3. Now you add the epel repos, if you haven’t already done so ‘sudo dnf install epel-release’ and that’s OK too.

4. That’s done, you activate the powertools ‘sudo dnf config-manager --set-enabled’ it worked well too.

5. Here’s where the problems begin:  
Before you get to the actual installation, a few dependencies are still missing. You will bring it with: ‘sudo dnf install libxslt-devel libpng-devel libX11-devel zlib-devel  
libtiff-devel freetype-devel libxcb-devel libxml2-devel libgcrypt-devel  
dbus-devel libjpeg-turbo-devel fontconfig-devel gnutls-devel  
gstreamer1-devel libXcursor-devel libXi-devel libXrandr-devel  
libXfixes-devel libXinerama-devel libXcomposite-devel  
mesa-libOSMesa-devel libpcap-devel libusb-devel libv4l-devel  
libgphoto2-devel gstreamer1-devel libgudev SDL2-devel gsm-devel  
libvkd3d-devel libudev-devel’

And then it returns: Last metadata expiration check: 5:11:06 ago on Wed 07 Dec 2022 03:55:54 PM -03.  
Package libxslt-devel-1.1.34-9.el9.x86\_64 is already installed.  
Package libpng-devel-2:1.6.37-12.el9.x86\_64 is already installed.  
Package libX11-devel-1.7.0-7.el9.x86\_64 is already installed.  
Package zlib-devel-1.2.11-34.el9.x86\_64 is already installed.  
Package libtiff-devel-4.4.0-2.el9.x86\_64 is already installed.  
Package freetype-devel-2.10.4-9.el9.x86\_64 is already installed.  
Package libxcb-devel-1.13.1-9.el9.x86\_64 is already installed.  
Package libxml2-devel-2.9.13-2.el9.x86\_64 is already installed.  
Package libgcrypt-devel-1.10.0-8.el9\_0.x86\_64 is already installed.  
Package dbus-devel-1:1.12.20-6.el9.x86\_64 is already installed.  
Package libjpeg-turbo-devel-2.0.90-5.el9.x86\_64 is already installed.  
Package fontconfig-devel-2.14.0-1.el9.x86\_64 is already installed.  
Package gnutls-devel-3.7.6-12.el9\_0.x86\_64 is already installed.  
**No match for argument: mesa-libOSMesa-devel**  
**No match for argument: libpcap-devel**  
**No match for argument: libusb-devel**  
**No match for argument: libv4l-devel**  
**No match for argument: libgphoto2-devel**  
**Package libgudev-237-1.el9.x86\_64 is already installed.**  
**No match for argument: gsm-devel**  
**No match for argument: libvkd3d-devel**  
**Error: Unable to find a match: mesa-libOSMesa-devel libpcap-devel libusb-devel libv4l-devel libgphoto2-devel gsm-devel libvkd3d-devel**

1. Download the Wine 6 archive now ‘wget [https://dl.winehq.org/wine/source/6.0/wine-6.0.tar.xz](https://dl.winehq.org/wine/source/6.0/wine-6.0.tar.xz)’ and that’s cool.

2. Now just unzip the archive and off you go ‘tar xvf wine-6.0.tar.xz’ that works fine.

3. Last but not least, the installation of Wine, that worked well.  
`cd wine-6.0/`

4. There’s where is other problem when i do the command ‘tar xvf wine-6.0.tar.xz’ the terminal shows me back:  
And that worked very good!

5. ‘cd wine-6.0/’, it has work pretty well.

6. ‘./configure --enable-win64` `make` `sudo make install’ and there’s another errors:  
configure: WARNING: you should use --build, --host, --target  
configure: WARNING: you should use --build, --host, --target  
configure: WARNING: you should use --build, --host, --target  
configure: WARNING: you should use --build, --host, --target  
checking build system type… Invalid configuration `make': machine `make-unknown’ not recognized  
configure: error: /bin/sh tools/config.sub make failed  
[root@acer wine-6.0]# ./configure --enable-win64 make sudo make install  
configure: WARNING: you should use --build, --host, --target  
configure: WARNING: you should use --build, --host, --target  
configure: WARNING: you should use --build, --host, --target  
configure: WARNING: you should use --build, --host, --target  
checking build system type… Invalid configuration `make': machine `make-unknown’ not recognized  
configure: error: /bin/sh tools/config.sub make failed

Anyway, its always impossible to make the things happen.  
Please, could you help me? Thanks again, I wish you the best!

---

<div class="post-metadata">

### Author: ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)
#### Post date: [December 8, 2022, 1:54am UTC](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181/2 "2022-12-08T01:54:44Z")

</div>

There is no “wine” packages available for Enterprise Linux 9. Where are you seeing wine packages? Are you attempting to use EPEL 8 to install on 9? `powertools` is a Rocky Linux 8 repository. It’s called `crb` in 9.

Rocky Linux 8.7 does, however, allow you to install wine assuming you have powertools enabled and the epel-release package installed to provide the epel repo.

Also see: [2093596 – Please branch and build wine in epel9](https://bugzilla.redhat.com/show_bug.cgi?id=2093596)

---

<div class="post-metadata">

### Author: ![andre38](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@andre38](https://forums.rockylinux.org/u/andre38)
#### Post date: [December 8, 2022, 11:45am UTC](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181/3 "2022-12-08T11:45:03Z")

</div>

@label thanks for your help.  
I didn’t have an idea that Rocky Linux 9.1 didn’t supported it.  
I am a rookie at Rocky as I meant, is there a way to do a downgrade from Rocky Linux 9.1 for Rocky Linux 8.7 without reinstalling it?  
Thanks again for your precious help.

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [December 8, 2022, 12:11pm UTC](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181/4 "2022-12-08T12:11:34Z")

</div>

> [@andre38](#):
>
> is there a way to do a downgrade from Rocky Linux 9.1 for Rocky Linux 8.7 without reinstalling it?

No. Rocky 8 and Rocky 9 are two distinct distros. There is no supported method to convert one to the other (either way).

---

<div class="post-metadata">

### Author: ![andre38](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@andre38](https://forums.rockylinux.org/u/andre38)
#### Post date: [December 8, 2022, 8:37pm UTC](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181/5 "2022-12-08T20:37:41Z")

</div>

@jlehtone Thanks for the help, in wich verion of Rocky Linux can I use wine in a safe way?  
Thanks again!

---

<div class="post-metadata">

### Author: ![Dalbed99](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@Dalbed99](https://forums.rockylinux.org/u/Dalbed99)
#### Post date: [April 2, 2023, 7:17am UTC](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181/6 "2023-04-02T07:17:39Z")

</div>

I use Wine on Rocky 8.7. But sometimes it is necessary to restart the system after the OS upgrade, because Wine reports errors when loading the .exe file.  
procedure - [Install WineHQ on AlmaLinux 8 or Rocky Linux Desktop - Linux Shout](http://linux.how2shout.com/install-winehq-on-almalinux-8-or-rocky-linux-desktop/)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)
#### Post date: [August 24, 2023, 4:47am UTC](https://forums.rockylinux.org/t/failed-to-install-wine-on-rocky-linux-9-1-part-2/8181/7 "2023-08-24T04:47:47Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
