1,介绍

wine是一个能够再多种posix-complicant操作系统(比如linux)上运行windows应用的兼容层,另外wine有葡萄酒的意思,所以很多人叫它葡萄酒。

wine和系统一样,有stable(稳定版),development(开发版),staging(发行版)三种版本。

wine的衍生产品有两个,一个是CodeWeavers开发的crossover,一个是TransGaming Technologies的Cedega。

CrossOver Office以提供应用软件支持为主,Cedega则锁定在游戏娱乐方面。这两个都是花钱的,资本主义者真的是无处不在,开源的东西都不放过。

2,安装

方法1:命令安装

详细的我就不写了,请参考我的另一篇博文​​debian安装qq​​的坑一。

方法2:自己编译

guoyanzhang@bogon:~/下载$ wget https://dl.winehq.org/wine/source/3.0/wine-3.0-rc1.tar.xz
guoyanzhang@bogon:~/下载$ tar jxvf wine-3.0-rc1.tar.xz
guoyanzhang@bogon:~/下载$ cd wine-3.0-rc1
如果你是要32位wine,则是:
guoyanzhang@bogon:~/下载/wine-3.0-rc1$ ./configure
如果你是要64位wine,则是:
guoyanzhang@bogon:~/下载/wine-3.0-rc1$ ./configure --enable-win64

guoyanzhang@bogon:~/下载/wine-3.0-rc1$ sudo make
一个小时...
guoyanzhang@bogon:~/下载/wine-3.0-rc1$ sudo make install

如果你安装的是32位wine,则是
guoyanzhang@bogon:~/下载/wine-3.0-rc1$ wine --version
wine-3.0-rc1
如果你安装的是64位wine,则是
guoyanzhang@bogon:~/下载/wine-3.0-rc1$ wine64 --version
wine-3.0-rc1

如果是64位的wine,还需要增加一个链接,
guoyanzhang@bogon:~/下载/wine-3.0-rc1$ sudo ln -s /usr/local/bin/wine64 /usr/local/bin/wine

不过最新的不一定是最好的,这个看系统了,可以去​​https://dl.winehq.org/wine/source​​下载其他版本的。

卸载的话,请参考我这篇博文​​debian卸载wine​​。

参考1:​​https://www.linuxidc.com/Linux/2017-12/149285.htm​

参考2:​​https://baike.baidu.com/item/wine/2286934?fr=aladdin​