Centos 7 上的 Wine 1.9.24
Wine 1.9.24 on Centos 7
问题
当我尝试启动任何 windows 程序时,我没有收到任何错误,也没有任何反应。我在 3 台装有 Centos 7 的不同机器上进行了尝试。还尝试了旧版本的 Wine。使用 Mikrotik 的 winbox.exe 和 putty.exe 进行测试。可能是什么问题?
$ ./wine winbox.exe
$
CentOS 7 版本
$ cat /etc/*elease | grep "release" | head -1
CentOS Linux release 7.3.1611 (Core)
内核版本
$ uname -r
3.10.0-514.2.2.el7.x86_64
开箱版
$ openbox --version | grep "Openbox"
Openbox 3.5.2
Wine 安装步骤
sudo yum clean all
sudo yum update -y
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y libX11-devel freetype-devel zlib-devel libxcb-devel libxml2-devel libxslt-devel libjpeg-devel gnutls-devel flex bison
cd /tmp
wget http://dl.winehq.org/wine/source/1.9/wine-1.9.24.tar.bz2
tar xjf wine-1.9.24.tar.bz2
cd wine-1.9.24
./configure --enable-win64
make -j4
并且可执行文件正在运行
$ ./wine --version
wine-1.9.24
wine-2.0-rc3
没有时间尝试最新的Wine 2.0 版本,但是wine-2.0-rc3 解决了我所有的问题。仅测试 32 位安装。一步一步:
sudo yum clean all
sudo yum update -y
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y libX11-devel freetype-devel zlib-devel libxcb-devel libxml2-devel libxslt-devel libjpeg-devel gnutls-devel flex bison
sudo yum install -y samba-winbind samba-winbind-clients samba-winbind-modules libwbclient-devel mod_auth_ntlm_winbind
# OpenGL support
sudo yum install mesa-dri-drivers.i686 mesa-libGL.i686
mkdir ~/bin && cd ~/bin
wget http://dl.winehq.org/wine/source/2.0/wine-2.0-rc3.tar.bz2
tar xjf wine-2.0-rc3.tar.bz2 && cd wine-2.0-rc3
# run provided install tool and write the output to file
./tools/wineinstall | tee output.file
# get the winetricks tool
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
WINE=~/bin/wine-2.0-rc3/wine sh winetricks corefonts vcrun6 mfc40 ie8 ie7
# start the downloaded windows program
./wine ~/Downloads/winbox.exe
来自 Mikrotik 的 winbox
SketchUp
问题
当我尝试启动任何 windows 程序时,我没有收到任何错误,也没有任何反应。我在 3 台装有 Centos 7 的不同机器上进行了尝试。还尝试了旧版本的 Wine。使用 Mikrotik 的 winbox.exe 和 putty.exe 进行测试。可能是什么问题?
$ ./wine winbox.exe
$
CentOS 7 版本
$ cat /etc/*elease | grep "release" | head -1
CentOS Linux release 7.3.1611 (Core)
内核版本
$ uname -r
3.10.0-514.2.2.el7.x86_64
开箱版
$ openbox --version | grep "Openbox"
Openbox 3.5.2
Wine 安装步骤
sudo yum clean all
sudo yum update -y
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y libX11-devel freetype-devel zlib-devel libxcb-devel libxml2-devel libxslt-devel libjpeg-devel gnutls-devel flex bison
cd /tmp
wget http://dl.winehq.org/wine/source/1.9/wine-1.9.24.tar.bz2
tar xjf wine-1.9.24.tar.bz2
cd wine-1.9.24
./configure --enable-win64
make -j4
并且可执行文件正在运行
$ ./wine --version
wine-1.9.24
wine-2.0-rc3
没有时间尝试最新的Wine 2.0 版本,但是wine-2.0-rc3 解决了我所有的问题。仅测试 32 位安装。一步一步:
sudo yum clean all
sudo yum update -y
sudo yum groupinstall -y 'Development Tools'
sudo yum install -y libX11-devel freetype-devel zlib-devel libxcb-devel libxml2-devel libxslt-devel libjpeg-devel gnutls-devel flex bison
sudo yum install -y samba-winbind samba-winbind-clients samba-winbind-modules libwbclient-devel mod_auth_ntlm_winbind
# OpenGL support
sudo yum install mesa-dri-drivers.i686 mesa-libGL.i686
mkdir ~/bin && cd ~/bin
wget http://dl.winehq.org/wine/source/2.0/wine-2.0-rc3.tar.bz2
tar xjf wine-2.0-rc3.tar.bz2 && cd wine-2.0-rc3
# run provided install tool and write the output to file
./tools/wineinstall | tee output.file
# get the winetricks tool
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
WINE=~/bin/wine-2.0-rc3/wine sh winetricks corefonts vcrun6 mfc40 ie8 ie7
# start the downloaded windows program
./wine ~/Downloads/winbox.exe