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

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

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’ 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!

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

@nazunalika 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.

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

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

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

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