Difference between revisions of "Wine"

From TBP Wiki
Jump to: navigation, search
Line 27: Line 27:
 
You can set up a 32 bit or 64 bit directory with this:  
 
You can set up a 32 bit or 64 bit directory with this:  
  
     WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine winecfg
+
     WINEARCH=win64 WINEPREFIX=~/.wine64 winecfg
  
 
Change the "32" with a "64" for whichever you need.
 
Change the "32" with a "64" for whichever you need.

Revision as of 11:36, 24 October 2019

Wine (recursive acronym for Wine Is Not an Emulator) is a free and open source compatibility layer software application that aims to allow applications designed for Microsoft Windows to run on Unix-like operating systems. Wine also provides a software library, known as Winelib, against which developers can compile Windows applications to help port them to Unix-like systems.

It duplicates functions of Windows by providing alternative implementations of the DLLs that Windows programs call, and a process to substitute for the Windows NT kernel. This method of duplication differs from other methods that might also be considered emulation, where Windows programs run in a virtual machine. Wine is predominantly written using black-box testing reverse-engineering, to avoid copyright issues.

The name Wine initially was an acronym for Windows emulator. Its meaning later shifted to the recursive backronym, Wine is not an emulator in order to differentiate the software from CPU emulators. While the name sometimes appears in the forms WINE and wine, the project developers have agreed to standardize on the form Wine.

The phrase "wine is not an emulator" is a reference to the fact that no processor code execution emulation occurs when running a Windows application under Wine. "Emulation" usually refers to the execution of compiled code intended for one processor (such as x86) by interpreting/recompiling software running on a different processor (such as PowerPC). Such emulation is almost always much slower than execution of the same code by the processor for which the code was compiled. In Wine, the Windows application's compiled x86 code runs at full native speed on the computer's x86 processor, just as it does when running under Windows. Windows system services are also supplied by Wine, in the form of wineserver.

In a 2007 survey by desktoplinux.com of 38,500 Linux desktop users, 31.5% of respondents reported using Wine to run Windows applications. This plurality was larger than all x86 virtualization programs combined, as well as larger than the 27.9% who reported not running Windows applications.

Installation

Installing depends on each Linux distribution.

Arch Linux

   pacman -S wine-staging

Ubuntu

   apt-get install wine

FreeBSD

   pkg install wine

You can install xaudio2 for DirectX requirements with the following:

   winetricks xact

32 bit and 64 bit

You can set up a 32 bit or 64 bit directory with this:

   WINEARCH=win64 WINEPREFIX=~/.wine64 winecfg

Change the "32" with a "64" for whichever you need.