Wine官方网站:
Wine下载地址:正式源码发布站点
Wine官方F&Q:Win64 Support for Wine
快捷安装脚本:
本文基于:
#####################################################
### 新建文件夹并下载wine,不必追求最新版本,可能会编译失败,取stable版本,比如这里是3.0###
mkdir ~/wine
cd ~/wine
wget
tar -xf wine-3.0tar.xz
### 安装编译环境(可能有pkg提示不存在,不必在意,继续向下) ###
yum -y groupinstall 'Development Tools'
yum -y install libX11-devel freetype-devel
yum install alsa-lib-devel.i686 libsndfile-devel.i686 readline-devel.i686 glib2.i686 glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 pulseaudio-libs-devel.i686 cmake portaudio-devel.i686 openal-soft-devel.i686 audiofile-devel.i686 freeglut-devel.i686 lcms-devel.i686 libieee1284-devel.i686 openldap-devel.i686 unixODBC-devel.i686 sane-backends-devel.i686 fontforge libgphoto2-devel.i686 isdn4k-utils-devel.i686 mesa-libGL-devel.i686 mesa-libGLU-devel.i686 libXxf86dga-devel.i686 libXxf86vm-devel.i686 giflib-devel.i686 cups-devel.i686 gsm-devel.i686 libv4l-devel.i686 fontpackages-devel ImageMagick-devel.i686 openal-soft-devel.i686 libX11-devel.i686 docbook-utils-pdf libtextcat tex-cm-lgc
yum install alsa-lib-devel audiofile-devel.i686 audiofile-devel cups-devel.i686 cups-devel dbus-devel.i686 dbus-devel fontconfig-devel.i686 fontconfig-devel freetype.i686 freetype-devel.i686 freetype-devel giflib-devel.i686 giflib-devel lcms-devel.i686 lcms-devel libICE-devel.i686 libICE-devel libjpeg-turbo-devel.i686 libjpeg-turbo-devel libpng-devel.i686 libpng-devel libSM-devel.i686 libSM-devel libusb-devel.i686 libusb-devel libX11-devel.i686 libX11-devel libXau-devel.i686 libXau-devel libXcomposite-devel.i686 libXcomposite-devel libXcursor-devel.i686 libXcursor-devel libXext-devel.i686 libXext-devel libXi-devel.i686 libXi-devel libXinerama-devel.i686 libXinerama-devel libxml2-devel.i686 libxml2-devel libXrandr-devel.i686 libXrandr-devel libXrender-devel.i686 libXrender-devel libxslt-devel.i686 libxslt-devel libXt-devel.i686 libXt-devel libXv-devel.i686 libXv-devel libXxf86vm-devel.i686 libXxf86vm-devel mesa-libGL-devel.i686 mesa-libGL-devel mesa-libGLU-devel.i686 mesa-libGLU-devel ncurses-devel.i686 ncurses-devel openldap-devel.i686 openldap-devel openssl-devel.i686 openssl-devel zlib-devel.i686 pkgconfig sane-backends-devel.i686 sane-backends-devel xorg-x11-proto-devel glibc-devel.i686 prelink fontforge flex bison libstdc++-devel.i686 pulseaudio-libs-devel.i686 gnutls-devel.i686 libgphoto2-devel.i686 openal-soft-devel openal-soft-devel.i686 isdn4k-utils-devel.i686 gsm-devel.i686 samba-winbind libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 gettext-devel.i686 libmpg123-devel.i686
### 编译并安装 ###
mkdir wine64
cd wine64
../wine-1.7.9/configure --enable-win64
make > make.log 2>&1
cd ..
mkdir wine32
cd wine32
../wine-1.7.9/configure --with-wine64=../wine64
make > make.log 2>&1
make install
cd ../wine64
make install
至此,wine安装完成,在终端里边运行wine,winecfg,winefile试试。
如果需要安装运行Windows软件,先用winetricks完善软件所需环境,然后直接运行wine ***.exe。
安装winetricks令wine更完整
winetricks的作用就是安装wine的各种运行环境,wine官方的说明:
wget
chmod +x winetricks
sudo mv winetricks /usr/local/bin
在终端里边直接输入winetricks来打开安装窗口,如果没有出窗口的话,先运行一下startx。或者直接在wine后面加上需要安装的环境。
winetricks corefonts vcrun6
阅读(3698) | 评论(0) | 转发(0) |