Using Wine is a no brainer:
wine /path/to/application.exe <command-line-arguments>and if the file happens to have executable permissions (chmod +x ...) then it's even easier - just launch it like any other script or binary executable, by typing
/path/to/application.exe <command-line-arguments>Last time I tried it I hit a problem:
err:module:import_dll Library MFC42.DLL (which is needed by L"Z:\\path\\to\\application.exe") not found err:module:LdrInitializeThunk Main exe initialization for L"Z:\\path\\to\\application.exe" failed, status c0000135This means that a required DLL is missing - in this case it's MFC42.DLL. This specific DLL is needed for (older) GUI applications that use MFC, and it isn't part of Wine.
Whatever you do if this happens to you - don't try getting this DLL from any of the websites that Google will list when you search for it. Google marks quite a few of these sites as sites that can harm your computer. You have been warned.
Window$ users can get MFC42.DLL and other DLLs by installing the Microsoft Visual C++ Redistributable Package.
The recommended way of doing this under Wine is to follow the instructions on the Wine wiki:
- download winetricks:
- make it executable:
chmod +x winetricks(optional: place the file in a system directory such as /usr/local/bin)
- install cabextract:
aptitude install cabextract(actually, I'm not sure it's necessary for fixing the MFC problem, but it's definitely recommended for fixing other Wine problems)
[25 Feb 2012] UPDATE:
winetrickshas been packaged in Debian/testing for quite a while - so I recommend that you don't install it manually as per steps 1 thru 3 above, but rather use one of the package managers to do it for you:
aptitude install winetricks