CentOS 7 下编译Wine1.8.1 32位+64位

关于Wine

Wine (“Wine Is Not an Emulator” 的递归缩写)是一个能够在多种 POSIX-compliant 操作系统(诸如 Linux,Mac OSX 及 BSD 等)上运行 Windows 应用的兼容层。
Wine 是一个在Linux和UNIX之上的,Windows 3.x和 Windows APIs的实现。注意,Wine不是Windows模拟器,而是运用API转换技术实做出Linux对应到Windows相对应的函数来调用DLL以运行Windows程序。Wine可以工作在绝大多数的UNIX版本下,包括Linux, FreeBSD, 和 Solaris。另外,也有适用于Mac OS X的Wine程序。Wine不需要Microsoft Windows, 因为这是一个完全由百分之百的免费代码组成的。如果有可利用的副本的话,它也可以随意地使用本地系统的DLLs。Wine的发布是完全公开源代码的,并且是免费发行的。

CentOS 7 下编译安装 Wine

  1. 下载解压Wine 1.8.1

    cd ~
    wget http://citylan.dl.sourceforge.net/project/wine/Source/wine-1.8.1.tar.bz2
    tar -xf wine-1.8.1.tar.bz2

  2. 安装依赖包

    yum -y install gcc flex bison
    yum -y install libX11-devel freetype-devel libXrender-devel mesa-libGL-devel openldap-devel libxml2-devel libxslt-devel gnutls-devel libjpeg-turbo-devel libpng-devel alsa-lib-devel libXcursor-devel libXi-devel libXrandr-devel libXinerama-devel libXcomposite-devel mesa-libGLU-devel dbus-devel ncurses-devel sane-backends-devel libv4l-devel libgphoto2-devel lcms2-devel pulseaudio-libs-devel gstreamer-devel cups-devel fontconfig-devel gsm-devel libtiff-devel openal-soft-devel isdn4k-utils-devel openssl-devel libpcap-devel libXxf86vm-devel
    yum -y install libX11-devel.i686 freetype-devel.i686 libXrender-devel.i686 mesa-libGL-devel.i686 openldap-devel.i686 libxml2-devel.i686 libxslt-devel.i686 gnutls-devel.i686 libjpeg-turbo-devel.i686 libpng-devel.i686 alsa-lib-devel.i686 libXcursor-devel.i686 libXi-devel.i686 libXrandr-devel.i686 libXinerama-devel.i686 libXcomposite-devel.i686 mesa-libGLU-devel.i686 dbus-devel.i686 ncurses-devel.i686 sane-backends-devel.i686 libv4l-devel.i686 libgphoto2-devel.i686 lcms2-devel.i686 pulseaudio-libs-devel.i686 gstreamer-devel.i686 cups-devel.i686 fontconfig-devel.i686 gsm-devel.i686 libtiff-devel.i686 isdn4k-utils-devel.i686 openssl-devel.i686 libpcap-devel.i686 libXxf86vm-devel.i686 glibc-devel.i686

  3. 配置, 编译安装

    mkdir wine64
    cd wine64
    ../wine-1.8.1/configure --enable-win64
    make -j8
    cd ..
    mkdir wine32
    cd wine32
    ../wine-1.8.1/configure --with-wine64=../wine64
    make -j8
    make install
    cd ../wine64
    make install

标签: none

添加新评论