Centos7 安装Wine

1.安装需要的包文件

yum groupinstall 'Development Tools'

yum install libX11-devel freetype-devel zlib-devel libxcb-devel

2.安装wine

yum install wine

另外如果不能直接执行2,那么可以:

cd /usr/src
wget  http://prdownloads.sourceforge.net/wine/wine-1.7.40.tar.bz2
tar xjf wine-1.7.40.tar.bz2
cd wine-1.7.40

#32位:
./configure
#64位:
./configure  --enable-win64

make
make install

#32位:
wine --version
#64位:
wine64 –version

如果安装完成后,应用程序中没有出现wine,那么从新执行2即可

————————————————————————————————————————————————————————

Wine 是一款开源免费且易于使用的程序,它是在 Linux 运行 Windows 应用程序的兼容层。2018年1月18日,Wine 团队宣布了最新的稳定版3.0。Wine 官方没有提供针对 CentOS 的软件源。

CentOS 7 的 EPEL 软件源中包含了最新稳定版 Wine 3.0.1,但是它是 64 位软件包,没有 32 位版本的软件包。Wine 64 位版本只能运行 64 位的 Windows 软件,不能运行 32 位 Windows 软件。

推荐使用 CentOS/RHEL 7 32 位 Wine 软件源安装 32 位版本的 Wine,它同时安装 EPEL 软件源中的 64 位版本的 Wine,使 Wine 既能够运行 32 位 Windows 软件,又能运行 64 位 Windows 软件。

本文介绍在 CentOS 7 系统中使用 EPEL 软件源安装 64 位版本的最新稳定版 Wine 3.0.1,和使用 CentOS/RHEL 7 32 位 Wine 软件源安装 32 位版本的最新稳定版 Wine 3.0.1。

1、CentOS 7 安装 64 位 Wine

1)安装 EPEL 软件源

Wine 3 最新稳定版包含在 EPEL 软件源中,安装 Wine 3 首先需要安装 EPEL 软件源

复制sudo yum install epel-release

2)CentOS 7 安装 64 位 Wine 3.0

安装 EPEL 软件源后,直接使用如下命令安装 64 位 Wine 3 最新稳定版:

复制sudo yum -y install wine

2、CentOS 7 安装 32 位 Wine

1)32 位 Wine 依赖于 EPEL 软件源中 64 位 Wine,所以首先按如上安装 EPEL 软件源

2)安装 CentOS/RHEL 7 32 位 Wine 软件源

复制sudo yum -y install https://harbottle.gitlab.io/wine32/7/i386/wine32-release.rpm

3)CentOS 7 安装 32 位 Wine,它同时安装 64 位 Wine

复制sudo yum -y install wine.i686

3、CentOS 7 为 Wine 3 安装中文字体

在 CentOS 7 中安装完 Wine 3 后,运行程序显示中文会模糊,那是因为 Wine 中没有安装 Windows 下常用的中文字体,安装完成后字体文件夹的位置为 /usr/share/wine/fonts/,你需要从网上下载常用中文字体,如:宋体,黑体,仿宋 等,把这些字体放在 font 文件夹下,然后复制到 Wine 的字体文件夹中。

复制sudo cp font/* /usr/share/wine/fonts/

4、Wine 3 安装启动 Windows 程序

Wine 3 安装完成后,你可以右击 Windows exe 文件,然后选择“用‘Wine Windows Program Loader’打开”,来安装程序。

程序安装完成后,在桌面上有 Windows 程序的快捷方式,双击程序的快捷启动程序。

5、Wine 3 卸载 Windows 程序

CentOS 7 安装 Wine 3 后,如需卸载应用程序,进入菜单“应用程序-->Wine”,点击菜单项“Wine Software Uninstaller”卸载 Windows 应用程序。

猜你喜欢

转载自blog.csdn.net/zjy900507/article/details/88655773