Couldn't run 64 bit programs with wine


#1

I have a functional 32 bit wine environment and all of the 32 bit windows applications runs properly.

But, when I want to execute any 64 bit programs it gives me following error:

wine is a 32-bit installation, it cannot support 64-bit applications

If I repeat the command again with wine64 binary, it gives me following error:

wine: Bad EXE format

How can I run 64 bit programs under wine?


#2

It seems that you have 32 bit wine bottle in your ~/.wine folder. In order to be able to run 64 bit programs, you need to setup another bottle for 64 bit applications:

$ WINEARCH=win64 WINEPREFIX=~/.wine64 winecfg

After that you can run programs specifying your newly created wine64 bottle:

$ WINEPREFIX=~/.wine64 wine app.exe