short for | : | Wine Is Not an Emulator |
是什么 ? | : | a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as GNU/Linux, macOS, & BSD. Instead of simulating internal Windows logic like a virtual machine or emulator, Wine translates Windows API calls into POSIX calls on-the-fly, eliminating the performance and memory penalties of other methods and allowing you to cleanly integrate Windows applications into your desktop. |
开发语言 | : | C |
官方主页 | : | https://www.winehq.org |
操作系统 | 包管理器 | 安装命令 |
---|---|---|
macOS | HomeBrew | brew install xquartz |
GNU/Linux | HomeBrew | brew install wine |
apt | sudo apt-get install -y wine | |
CentOS | yum | sudo yum install -y wine |
dnf | sudo dnf install -y wine | |
openSUSE | zypper | sudo zypper install -y wine |
Alpine Linux | apk | sudo apk add wine |
pacman | sudo pacman -Syyu --noconfirm |
step1、安装依赖
所有时 | Terminal + Shell + GNU CoreUtils |
下载时 | cURL |
编译时 | gmake、gcc / GCC | Clang / LLVM、flex、bison |
运行时 | glibc ( libc.so 、ld-linux-x86-64.so ) |
step2、使用git下载Wine
源码
git clone git://source.winehq.org/git/wine.git
step3、进入wine
目录,并查看它的内容
step4、切换到stable
分支
git checkout stable
step5、配置、编译、安装
./configure --enable-win64 && make && sudo make install