CentOS 8编译安装32位Wine
想要在linux上运行windows软件就离不开wine,由于windows系统下的常用软件多是32位的,因此就需要安装32位的wine。虽然Centos 8源中没有32位wine,但是得益于RHEL系强大的32位程序库,因此可以通过源码编译的方式安装32位wine。另外,还可以使用CrossOver安装windows应用,该软件是wine的升级版,简单易用,功能强大,直接点点鼠标就能安装常见应用,省去编译的烦恼,只是需要付费。
下面介绍32位wine-5.0.2的编译安装方法:
1、安装epel-release、elrepo-release源:
$ sudo yum install epel-release
$ sudo yum install elrepo-release
注意:不要安装CentOS 7的nux-dextop源,没什么用。
2、启用centos源的PowerTools:
$ sudo vim /pos.po
修改为:
[PowerTools]
........
enabled=1
.........
3、建立缓存:
$ sudo yum makecache
4、清除已安装的wine:
$ sudo yum remove wine*
5、安装编译环境:
$ sudo groupinstall 'Development Tools' -y
$ sudo yum install mingw32* mingw64* -y
$ sudo yum install gstreamer* -y
$ sudo yum install gstreamer*.i686 -y
$ sudo yum install kernel-devel kernel-headers kernel-tools kernel-modules -y
$ sudo yum install m4 ccache -y
$ sudo yum install qt5-devel qt5-qtbase* qt5-qttools* -y
$ sudo yum install qt5*.i686 -y
$ sudo yum install samba-winbind-clients libjpeg-turbo-devel libtiff-devel freetype-devel libmng libmng.i686 -y
$ sudo yum install glibc-devel.{i686,x86_64} libgcc.{i686,x86_64} libX11-devel.{i686,x86_64} freetype-devel.{i686,x86_64} gnutls-devel.{i686,x86_64} libxml2-devel.{i686,x86_64} systemd-devel.{x86_64,i686} libjpeg-turbo-devel.{i686,x86_64} libXfixes-devel.{x86_64,i686} libpng-devel.{i686,x86_6
4} libXrender-devel.{i686,x86_64} alsa-lib-devel.{i686,x86_64} glib2-devel.{i686,x86_64} libSM-devel.{i686,x86_64} -y
$ sudo yum install xorg-x11-drv-intel.i686 fontconfig-devel.i686 fontconfig.i686 mesa-dri-drivers.i686 mesa*.x86_64 mesa*.i686 -y
$ sudo yum install libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 -y
$ sudo yum install openldap-devel libxslt-devel libXcursor-devel libXi-devel libXxf86vm-devel libXrandr-devel libXinerama-devel libXcomposite-devel mesa-libGLU-devel ocl-icd opencl-headers libpcap-devel dbus-devel ncurses-devel libsane-hpaio pulseaudio-libs-devel cups-devel libmpg123-devel fontconfig-devel sane-backends-devel -y
$ sudo yum install dbus-devel.i686 freetype-devel.i686 pulseaudio-libs-devel.i686 libX11-devel.i686 mesa-libGLU-devel.i686 libICE-devel.i686 libXext-devel.i686 libXcursor-devel.i686 libXi-devel.i686 libXxf86vm-devel.i686 libXrender-devel.i686 libXinerama-devel.i686 libXcomposite-devel.i686 libXrandr-devel.i686 mesa-libGL-devel.i686 mesa-libOSMesa-devel.i686 libxml2-devel.i686 zlib-devel.i686 gnutls-devel.i686 ncurses-devel.i686 sane-backends-devel.i686 libv4l-devel.i686 libgphoto2-devel.i686 libexif-devel.i686 lcms2-devel.i686 gettext-devel.i686 cups-devel.i686 fontconfig-
devel.i686 gsm-devel.i686 libjpeg-turbo-devel.i686 libtiff-devel.i686 unixODBC.i686 openldap-devel.i686 alsa-lib-devel.i686 freeglut-devel.i686 giflib-devel.i686 gstreamer1-devel.i686 libXmu-devel.i686 libXxf86dga-devel.i686 libieee1284-devel.i686 libpng-devel.i686 librsvg2-devel.i686 libstdc++-devel.i686 libusb-devel.i686 unixODBC-devel.i686 libpcap-devel.i686 -y $ sudo yum install icoutils openal-soft-devel prelink ImageMagick-devel fontpackages-devel libv4l-devel gsm-devel giflib-devel libXxf86dga-devel mesa-libOSMesa-devel libgphoto2-devel fontforge libusb-devel lcms2-devel audiofile-devel -y
$ sudo yum install mirrors.aliyun/centos/7.8.2003/os/x86_64/Packages/prelink-0.5.0-9.el7. x86_64.rpm-y
$ sudo yum install mirrors.aliyun/centos/7.8.2003/os/x86_64/Packages/isdn4k-utils-3.2-99
centos vim命令.el7.i686.rpm-y
$ sudo yum install mirrors.aliyun/centos/7.8.2003/os/x86_64/Packages/isdn4k-utils-3.2-99 .el7.x86_64.rpm-y
$ sudo yum install mirrors.aliyun/centos/7.8.2003/os/x86_64/Packages/isdn4k-utils-devel-3.2-99.el7.i686.rpm-y
$ sudo yum install mirrors.aliyun/centos/7.8.2003/os/x86_64/Packages/isdn4k-utils-devel-3.2-99.el7.x86_64.rpm-y
6、安装xulrunner运行环境:
$ cd ~/
$ wget /pub/xulrunner/releases/41.0.2/runtimes/xulrunner-41.-US.linux-i686.tar.bz2-O xulrunner-41.-US.linux-i686.tar.bz2
$ tar -xf xulrunner-41.-US.linux-i686.tar.bz2
$ sudo cp xulrunner /opt/xulrunner -r
连接到bin目录:
$ sudo ln -s /opt/xulrunner/xulrunner /bin/xulrunner
7、编译安装wine:
下载wine-5.0.
$ wget /wine/source/5.0/wine-5.0.
(推荐用手机ADM pro+或windows工具下载,速度快)
编译安装:
$ tar -xf wine-5.0.
$ cd wine-5.0.2
$ mkdir -p wine32 wine64
$ cd wine64
$ sudo ../configure --enable-win64
$ sudo make -j4
$ cd ../wine32
$ sudo PKG_CONFIG_PATH=/usr/lib/pkgconfig ../configure --with-wine64=../wine64 $ sudo make -j4
$ sudo make install
$ cd ../wine64
$ sudo make install
8、安装mono和gecko:
下载wine-gecko-2.47.1-x86_64.msi和wine-mono-4.9.4.msi:
/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86.msi
/wine/wine-gecko/2.47.1/wine-gecko-2.47.1-x86_64.msi /wine/wine-mono/4.9.4/wine-mono-4.9.4.msi
安装:
$ wine msiexec /i wine-mono-4.9.4.msi
$ wine msiexec /i wine-gecko-2.47.1-x86.msi
$ wine msiexec /i wine-gecko-2.47.1-x86_64.msi
初次配置:
$ winecfg
安装Windows软件:
$
至此,wine32位编译安装完成!
9、卸载方法:
在编译的源码目录wine32和wine64中执行
$ sudo make uninstall

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。