Begginer new fresh wine install not working

Questions about Wine on Linux
Locked
wine4work
Level 2
Level 2
Posts: 12
Joined: Tue Mar 28, 2023 3:26 am

Begginer new fresh wine install not working

Post by wine4work »

Hi,
my background is simple, my company requested me to use wine and i'm the only IT guy available to do this or with knowledge on linux (so i'm not able to ask anyone else for help..) i don't know much about wine but have been reading the FAQ and set up a install following this commands on my Rocky Linux 8.7 based on this website:
https://techviewleo.com/install-and-use ... ocky-linux
when using winecfg i picked WinXP cause legacy program worked on this version and did ./configure --enable-win64 due to the need of x64 for company software.

If i do which wine it says there is no wine in /bin but there is yes a wine64, dunno if this is something relevant or normal, do i need also wine syslink to work?

Have tried to then later install my company software but seems like configuration is missing cause it gets stuck on the wizard installer of the msi with a black window. Knowing this i scaled down to just install notepad++ which i think is pretty simple and many have tried before installing, but I am unable to make it run and don't know what i'm missing.

When i try installing the npp.8.5.1.Installer.x64.exe i get the following output:

Code: Select all

0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:err:vulkan:get_vulkan_driver Wine was built without Vulkan support.
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0110:err:environ:init_peb starting L"Z:\\home\\tposi\\Descargas\\npp.8.5.1.Installer.x64.exe" in experimental wow64 mode
0110:err:module:load_wow64_ntdll failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
0110:err:virtual:virtual_setup_exception stack overflow 1184 bytes addr (nil) stack 0x470b60 (0x470000-0x471000-0x56fd20)
I though this vulkan error could be fixed so i installed this vulkan libs.

if I yum list installed | grep vulkan get:
mesa-vulkan-drivers.x86_64 .... 22.1.5-2.el8
vulkan-headers.noarch ........ 1.3.224.0-1.el8
vulkan-loader.x86_64 .......... 1.3.224.0-2.el8

Also looked for a more recent version, so got wine 8.4 from downloads and applied same procedure as before but with the .tar.xz of recent version. Got Mono Jit compiler version 6.8.0.123 and unixODBC 2.3.7 and MySQL 8.0.30 for Linux installed. Do i need any other library? what am i missing?

I will appreciate any help, thanks.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Begginer new fresh wine install not working

Post by jkfloris »

I have no experience with Rocky Linux, but it seems the same as Fedora.
A full Wine installation consists of two parts. The 64 and 32 bit part.
- Install the necessary dependencies. Install both the 64 and 32 bit package. For example, install libX11-devel.x86_64 and libX11-devel.i686
- Compile the 64-bit version of Wine first with the --enable-win64 configure flag (in a separate build directory)
- Build the 32-bit version (again in a fresh build directory), point configure to the 64-bit build directory by using --with-wine64=
- Run make install in the 32-bit build tree first, then in the 64-bit one.
For example:

Code: Select all

cd ~/wine-dirs/wine64-build/
../wine-source/configure --enable-win64
make

cd ~/wine-dirs/wine32-build/
../wine-source/configure --with-wine64=../wine64-build
make

make install
cd ~/wine-dirs/wine64-build/
make install
More information:
https://wiki.winehq.org/Building_Wine
https://forums.rockylinux.org/t/how-to- ... ux/2907/29
wine4work
Level 2
Level 2
Posts: 12
Joined: Tue Mar 28, 2023 3:26 am

Re: Begginer new fresh wine install not working

Post by wine4work »

Many thanks, i was not paying attention to the configure output. I'm still missing lot of dependencies.. Is there a way to test or know my wine is configured correctly?
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Begginer new fresh wine install not working

Post by jkfloris »

At the end of configure, you get a summary which parts are missing.
Check the list on the Wiki to see if you need/want that part. If you don't want a component disable it with the --without-PACKAGE option.
For example, if you don't want ISDN (telephony) and OSS sound run:

Code: Select all

configure --without-capi --without-oss
If you're not sure, install all the components.

A successful configure ends with:

Code: Select all

...
config.status: executing Makefile commands

configure: Finished.  Do 'make' to compile Wine.
wine4work
Level 2
Level 2
Posts: 12
Joined: Tue Mar 28, 2023 3:26 am

Re: Begginer new fresh wine install not working

Post by wine4work »

Just for a recap and any other future reference to this, going to post all requisites i ended up needing to compile wine 8.6 on Rocky Linux 8.7

Code: Select all

sudo yum install -y mingw64-gcc.x86_64 mingw64-gcc-c++.x86_64 mingw32-gcc.x86_64 mingw32-gcc-c++.x86_64;
sudo yum install -y samba-devel.*;
sudo yum install -y vulkan-loader-devel.*;
sudo yum install -y glibc-devel.*;
sudo yum install -y libXcursor-devel.*;
sudo yum install -y libXi-devel.*;
sudo yum install -y libXinerama-devel.*;
sudo yum install -y dbus-devel.*;
sudo yum install -y krb5-devel.*;
sudo yum install -y fontconfig-devel.*;
sudo yum install -y libXcomposite-devel.*;
sudo yum install -y libXfixes-devel.*;
sudo yum install -y pcsc-lite-devel.*;
sudo yum install -y libXrender-devel.*;
sudo yum install -y libXext-devel.*;
sudo yum install -y mesa-libOSMesa-devel.*;
sudo yum install -y cmake.x86_64;
sudo yum install -y rocm-opencl-devel.*;
sudo yum install -y wayland-devel.*;
sudo yum install -y libXxf86wm-devel.*;
sudo yum install -y libX11-devel.*;
sudo yum install -y libXrandr-devel.*;
sudo yum install -y gnutls-devel.*;
sudo yum install -y libusbx-devel.*;
sudo yum install -y SDL2-devel.*;
sudo yum install -y ocl-icd-devel.*
Locked