tickelton / docker-metatrader

MetaTrader4/5 in a container
ISC License
112 stars 53 forks source link

How can I make it work with 64 bits MetaTrader5? #3

Closed luismasuelli closed 3 years ago

luismasuelli commented 3 years ago

I downloaded MetaTrader5 from Roboforex, and it is a 64 bits software. Names like "terminal64.exe" and "metatester64.exe" are among the filenames instead of their 32 bits counterparts. When I try running them I receive these errors:

0024:err:module:process_init L"Z:\path\to\terminal64.exe" 64-bit application not supported in 32-bit prefix.

How can I tweak the Dockerfile to use 64 bits instead of 32 bits MetaTrader?

tickelton commented 3 years ago

At the time I created the Dockerfile the 64 bit version MetaTrader5 would not run in Wine because of compatibility issues.

If those have been solved in newer Wine version, it might be enough to remove the following line from the Dockerfile: ENV WINEARCH win32

You might also have to use a newer version of Wine and the base Image for that, tough. So you would have to replace "xenial" in the following two lines with "groovy":

FROM ubuntu:xenial

RUN echo "deb http://dl.winehq.org/wine-builds/ubuntu/ xenial main" >> /etc/apt/sources.list && \

I haven't tried any of this myself because I still use an older 32 bit version of MetaTrader, but I'll give it a try later this week.

On Wed, Feb 3, 2021 at 5:37 AM luismasuelli notifications@github.com wrote:

I downloaded MetaTrader5 from Roboforex, and it is a 64 bits software. Names like "terminal64.exe" and "metatester64.exe" are among the filenames instead of their 32 bits counterparts. When I try running them I receive these errors:

0024:err:module:process_init L"Z:\path\to\terminal64.exe" 64-bit application not supported in 32-bit prefix.

How can I tweak the Dockerfile to use 64 bits instead of 32 bits MetaTrader?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tickelton/docker-metatrader/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVVBHEQ5S52TTC3TID6WF3S5DHINANCNFSM4XAETCKA .

tickelton commented 3 years ago

I just gave it a quick try. Apparently 64bit Metatrader works fine with newer versions of Wine. I will update the Dockerfile later today.

tickelton commented 3 years ago

d3af03ef8b0284bc51b4e7a0813a8ccc9da6819f updates the Ubuntu base image and Wine and starts terminal64.exe instead of terminal.exe.

That should fix current versions of MetaTrader 5.