centos7环境下安装wine,运行.exe可执行程序
步骤一:先安装两个扩展
(1) yum groupinstall ‘Development Tools‘
(2) yum install libX11-devel freetype-devel zlib-devel libxcb-devel
步骤二: 命令行下载并解压wine的包
(1) cd /usr/src
(2) wget http://prdownloads.sourceforge.net/wine/wine-1.7.24.tar.bz2
(3)tar xjf wine-1.7.24.tar.bz2
步骤三:安装wine
(1) cd wine-1.7.24/
(2) ./configure -enable-win64
(3) make install
(4) wine或者 wine --version
报错信息:
configure: error: FreeType development files not found. Fonts will not be built.
Use the --without-freetype option if you really want this.
注意:当在步骤二时,有可能最后会报一个错误,你需要的是执行:
sudo yum install freetype-devel
当执行make install会执行大概10分钟的左右的时间,耐心等待即可
成功截图如下:
运行可执行的.exe程序,先到对应的可执行程序的目录下后,然后执行如下:
wine progress.exe/wine64 xxx.exe