MT5 on linux using wine not working

 

Hi every one


Everything was fine until one day opening MT5 says:
A debugger has been found running in your system. Please, unload it from memory and restart your program.

I've checked the forum the same problem occurred to people long time ago and was about running in 32 bit which is not possible with new mt5setup.

these tries didn't work out:
* new prefix or even try fresh install from setup file says the same

* reinstall wine from scratch

* using env variable: WINEDEBUG=-all



OS: Archlinux

Wine version: 10.3

 

I have hit the very same bug with MT4, my MT5 was working just fine(probably depends on MT5's version). After many tests I realized that is related to wine 10.3, downgrading to 10.2 will make both work again for you.

 

Thank you so much for response.

Unfortunately on wine 10.4 and 10.2 still same problem exists.


Aleksandar Petrinic #:

I have hit the very same bug with MT4, my MT5 was working just fine(probably depends on MT5's version). After many tests I realized that is related to wine 10.3, downgrading to 10.2 will make both work again for you.

 

You can try running it as a 32-bit instance.

Create a 32-bit Wine prefix to avoid compatibility issues with MT5's 64-bit version:

export WINEPREFIX=~/.wine32
export WINEARCH=win32

wineboot

Install MT5 in this new prefix:

WINEPREFIX=~/.wine32 wine start /unix /path/to/mt5setup.exe

However, it's likely easier to just pick up a free 12-month VPS for MetaTrader. AWS/Azure/Google all have 12-month long trials for a Windows VPS.


 

Thanks for time


The new MT5 is 64bit and can't be installed on win32 architecture of wine. it even returns:

ShellExecuteEx failed: Bad EXE format

which makes sense.


Yes I shall use the VPS solution for keeping things live and thank you for the link but I need MT on my local machine for lots of reasons.

 
I am using MT5 on variety on Wine versions, been working with it without fail for years. Even using Debian GNU/Linux on Hetzner VPS.
Maybe it is Arch which is setting debugging flag for you, not wine itself. Try another distro, or VM.
 
Yes I checked with fresh Debian on other machine and it was OK. I just can't find the problem, what on Arch is flagging the debugger sadly
 

same problem here on manjaro. I had been using MT without problems up until wine version 10.2-2. starting from 10.3 I get the same debugger error.

each time I upgrade wine to check if it works with a new wine version, upon fail, I have to downgrade to 10.2-2 to continue using MT.

it seems to me that Metaquotes just whitelists some libs and newer wine has newer libs, so newer wines cause the error.

until we find out what is/are the lib/s, and override it/them, or until MT updates and whitelists newer libs that come with newer wines, we are locked to wine 10.2.

btw, @ramyar.rmn, does your wine prefix update when you downgrade wine to 10.2? I think I can run MT again because my prefix upgrades after downgrading wine.

 

I used Wine on Debian Linux for years, but eventually switched to running a Windows virtual machine with VirtualBox. It works really well — definitely a better solution than using Wine.

Later, when Windows 11 introduced support for multiple desktops, I decided to go all-in and did a full install.

I still have 2 Linux boxes and 1 Windows machine running

 
I just tried installing MT5 in a Manjaro-VM with Wine v10.9. The issue is still there. Afterwards I tried it in a Ubuntu 25.04 VM. With wine-stable (v10.0) it works as expected. With wine-staging (v10.9) the issue shows up. So it doesn't seem to be an Arch Linux related issue.