码迷,mamicode.com
首页 > Windows程序 > 详细

linux下wine安装

时间:2016-04-27 00:21:04      阅读:1618      评论:0      收藏:0      [点我收藏+]

标签:

Linux安装wine

 (2013-03-22 14:16:27)
标签: 

wine

 

centos

分类: Linux
下载地址:http://sourceforge.net/projects/wine/?source=dlp
下载后上传到目标服务器,也可以在目标服务器直接下载。
进入安装目录
tar xvjf wine-1.4.1.tar.bz2
cd wine-1.4.1
./configure
 
报错,flexbison,直接yum这两个就可以了,yum install flex bison -y
错误信息:configure: error: no suitable flex found. Please install the ‘flex‘ package.
          configure: error: no suitable flex found. Please install the ‘bison‘ package.
 
再报错,提示缺少32位所需的库(因为我的是64位系统)
可以使用./configure --enable-win64
 
又报错,没有X开发工具
configure: error: X development files not found. Wine will be built
without X support, which probably isn‘t what you want. You will need to install
development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.
执行yum install gnome-devel  -y  ,如果还是不行,复制下面的脚本到你的机器,然后赋予执行权限,执行
----------------------------------------脚本内容--------------------------------------------------------
#!/bin/sh
# Script to install build-time dependencies for Wine.
# If your distro isn‘t supported here, please add it.
# Home page (until accepted into wine tree): http://winezeug.googlecode.com
# Copyright 2006-2011 Dan Kegel
# Copyright 2008-2013 Austin English
# Please report bugs to http://code.google.com/p/winezeug/issues/list
# LGPL

if test "`lsb_release -i -r -s`" = "CentOS 5.8" || test "`lsb_release -i -r -s`" = "CentOS 6.2"
then
    set -e
    set -x
    echo "If you haven‘t already, please add the EPEL repository; see http://fedoraproject.org/wiki/EPEL"
    echo "Also, you might want to add the El Repo repository; see http://elrepo.org/"
    echo "Then you can e.g. install nvidia drivers with:"
    echo ‘yum install libXvMC; yum --disablerepo=\* --enablerepo=elrepo install kmod-nvidia nvidia-x11-drv  nvidia-x11-drv-32bit‘

centos_pkgs="SDL-devel Xaw3d-devel alsa-lib-devel audiofile-devel autoconf bison bzip2-devel cups-devel curl-devel cyrus-sasl-devel dbus-devel desktop-file-utils e2fsprogs-devel esound-devel expat-devel flex fontconfig-devel fontforge freeglut-devel freetype-devel fuse-devel gcc gd-devel giflib-devel glibc-devel glut-devel gmp-devel gnutls-devel gphoto2-devel gstreamer-devel hal-devel icoutils isdn4k-utils-devel kernel-devel keyutils-libs-devel krb5-devel lcms-devel libICE-devel libSM-devel libX11-devel libXScrnSaver-devel libXau-devel libXaw-devel libXcomposite-devel libXcursor-devel libXdamage-devel libXdmcp-devel libXevie-devel libXext-devel libXfixes-devel libXfont-devel libXft-devel libXi-devel libXinerama-devel libXmu-devel libXpm-devel libXrandr-devel libXrender-devel libXres-devel libXt-devel libXtst-devel libXv-devel libXvMC-devel libXxf86dga-devel libXxf86misc-devel libXxf86vm-devel libdrm-devel libfontenc-devel libgcrypt-devel libgpg-error-devel libidn-devel libieee1284-devel libjpeg-devel libmng-devel libpng-devel libselinux-devel libsepol-devel libstdc++-devel libtiff-devel libusb-devel libxml2-devel libxslt-devel lzma mesa-libGL-devel mesa-libGLU-devel mpg123-devel ncurses-devel netpbm-devel openldap-devel openssl-devel pkgconfig prelink pulseaudio-libs-devel sane-backends-devel unixODBC-devel xorg-x11-proto-devel xorg-x11-xtrans-devel zlib-devel "

centos_5_pkgs="gcc44 libXTrap-devel libXfontcache-devel "

centos_5_pkgs_64="bzip2-devel.i386 elf*.i386 glibc-devel.i386 gmp-devel.i386 libstdc++-devel.i386 libX*-devel.i386 libX*.i386 lua.i386 mesa*-devel.i386 tolua++.i386 zlib-devel.i386 "

centos_6_pkgs_64="alsa-lib-devel.i686 audiofile-devel.i686 bzip2-devel.i686 cups-devel.i686 cyrus-sasl-devel.i686 dbus-devel.i686 e2fsprogs-devel.i686 elf*.i686 esound-devel.i686 expat-devel.i686 fontconfig-devel.i686 freetype-devel.i686 fuse-devel.i686 gd-devel.i686 giflib-devel.i686 glibc-devel.i686 gmp-devel.i686 gnutls-devel.i686 gstreamer-devel.i686 hal-devel.i686 isdn4k-utils-devel.i686 keyutils-libs-devel.i686 krb5-devel.i686 lcms-devel.i686 libdrm-devel.i686 libfontenc-devel.i686 libgcrypt-devel.i686 libgpg-error-devel.i686 libICE-devel.i686 libidn-devel.i686 libieee1284-devel.i686 libjpeg-devel.i686 libmng-devel.i686 libpng-devel.i686 libsepol-devel.i686 libSM-devel.i686 libstdc++-devel.i686 libtiff-devel.i686 libusb-devel.i686 libX11-devel.i686 libXau-devel.i686 libXaw-devel.i686 libXcomposite-devel.i686 libXcursor-devel.i686 libXdamage-devel.i686 libX*-devel.i686 libXdmcp-devel.i686 libXevie-devel.i686 libXext-devel.i686 libXfixes-devel.i686 libXfont-devel.i686 libXft-devel.i686 libX*.i686 libXi-devel.i686 libxml2-devel.i686 libXmu-devel.i686 libXpm-devel.i686 libXrandr-devel.i686 libXrender-devel.i686 libXres-devel.i686 libXScrnSaver-devel.i686 libxslt-devel.i686 libXt-devel.i686 libXtst-devel.i686 libXv-devel.i686 libXvMC-devel.i686 libXxf86dga-devel.i686 libXxf86misc-devel.i686 libXxf86vm-devel.i686 lua.i686 mesa*-devel.i686 mesa-libGL-devel.i686 mesa-libGLU-devel.i686 ncurses-devel.i686 netpbm-devel.i686 openldap-devel.i686 openssl-devel.i686 pulseaudio-libs-devel.i686 sane-backends-devel.i686 SDL-devel.i686 unixODBC-devel.i686 Xaw3d-devel.i686 zlib-devel.i686 "

yum -y groupinstall "Development Tools"
yum -y groupinstall "X Window System"
yum -y install $centos_pkgs

case "`lsb_release -i -r -s`" in
*"CentOS 6."*)
    yum -y install $centos_6_pkgs_64
    ;;
*"CentOS 5."*)
    yum -y install $centos_5_pkgs $centos_5_pkgs_64 

    # Some centos 5 packages are too old for wine, so build those
    # from source, and put them in /usr/local/winedeps so they
    # don‘t clash with the system versions.

    # nettle
    if test ! -f /usr/local/winedeps/lib64/libnettle.a
    then
        wget -c http://www.lysator.liu.se/~nisse/archive/nettle-2.4.tar.gz
        rm -rf nettle-2.4
        tar -xzf nettle-2.4.tar.gz
        cd nettle-2.4
        ./configure prefix=/usr/local/winedeps
        make
        make install
        cd ..
    fi

    # gnutls
    if test ! -f /usr/local/winedeps/lib/libgnutls.a
    then
        wget -c http://ftp.gnu.org/gnu/gnutls/gnutls-3.0.19.tar.xz
        xzcat < gnutls-3.0.19.tar.xz > gnutls-3.0.19.tar
        tar -xf gnutls-3.0.19.tar
        cd gnutls-3.0.19
        ./configure prefix=/usr/local/winedeps CFLAGS="-I/usr/local/winedeps/include -L/usr/local/winedeps/lib64"
        cores=`cat /proc/cpuinfo | grep ‘processor‘ | wc -l`
        cores=`expr $cores - 1`
        make -j$cores
        make install
        cd ..
    fi

    # flex
    if test ! -f /usr/local/winedeps/bin/flex
    then
        wget -c ‘http://prdownloads.sourceforge.net/flex/flex-2.5.35.tar.bz2?download‘
        tar -xjf flex-2.5.35.tar.bz2
        cd flex-2.5.35
        ./configure prefix=/usr/local/winedeps
        make
        make install
        cd ..
    fi
    ;;
esac

echo ‘Now configure and build wine with e.g.‘
echo ‘PATH=/usr/local/winedeps/bin:$PATH‘
echo ‘export PATH‘
echo ‘cd $HOME‘
echo ‘mkdir wine64‘
echo ‘cd wine64‘
echo ‘../wine-git/configure --enable-win64 CC=gcc44 CFLAGS="-L/usr/local/winedeps/lib -I/usr/local/winedeps/include -g -O2"‘
echo ‘make‘
echo ‘cd $HOME‘
echo ‘mkdir wine32‘
echo ‘cd wine32‘
echo ‘../wine-git/configure --with-wine64=../wine64 CC=gcc44‘
echo ‘make‘

    exit

fi

# OpenSolaris stuff...

if test `uname -o` = Solaris
then
    if test ! -w /
    then
        echo "Usage: pfexec sh $0"
        exit 1
    fi

    if test ! `which pkg`
    then
        echo "Only OpenSolaris is supported at this time."    
        exit 1
    fi

    pkg install SUNWaconf SUNWaudh SUNWbison SUNWcups SUNWflexlex SUNWgcc SUNWgit     SUNWGlib SUNWgmake SUNWgnome-common-devel SUNWsane-backend SUNWxorg-headers SUNWxwinc
    exit
fi

if test `uname -s` = ‘FreeBSD‘
then
    if test ! -w /
    then
        echo "Usage: ‘sh $0‘ as root"
        exit 1
    fi

    pkg_add -r bison cups flex git gsm gstreamer-plugins jpeg lcms libGLU     libxslt mpg123 openldap-client sane-backends tiff xorg
    exit
fi

if test `uname -s` = ‘NetBSD‘
then
    if test ! -w /
    then
        echo "Usage: ‘sh $0‘ as root"
        exit 1
    fi

    pkg_add bison cups flex gsm jpeg lcms libxslt mpg123 openldap-client sane-backends scmgit-base tiff
    exit
fi

if test `uname -s` = ‘OpenBSD‘
then
    if test ! -w /
    then
        echo "You must run $0 as root"
        exit 1
    fi

    if test ! $PKG_PATH
    then
        echo "\$PKG_PATH is undefined, don‘t know where to get packages"
        exit 1
    fi

    for pkg in         git         lcms         gsm         openldap-client         sane-backends         gnutls         mpg123         jpeg         png         libxml         libxslt         bison
    do
        pkg_add $pkg
    done

    if test -d /usr/ports/devel/flex/
    then
        cd /usr/ports/devel/flex
        make
        make install
    else
        echo "Flex wasn‘t found in ports (or you don‘t have ports installed)."
        echo "You‘ll need to build/install flex manually. You need at least version 2.5.33."
        exit 2
    fi

fi

# Regular Linux distros.

if test ! -w /
then
    echo "Usage: sudo sh $0"
    exit 1
fi

#
# Alpine Linux:
alpine_pkgs="alsa-lib-dev autoconf automake bison build-base cups-dev flex fontconfig-dev freetype-dev git gnutls-dev gsm-dev gst-plugins-base-dev gstreamer-dev jpeg-dev lcms-dev libgphoto2-dev libpng-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxinerama-dev libxml2-dev libxrandr-dev libxrender-dev libxslt-dev libxxf86dga-dev mesa-dev mpg123-dev ncurses-dev openal-soft-dev openldap-dev openssl-dev paxctl tiff-dev v4l-utils-dev winbind zlib-dev"

#----------------------------------------------------------------------------
# Debian data, common to Debian GNU/kFreeBSD, GNU/Hurd and GNU/Linux:
debian_common_pkgs="bison ccache flex fontforge gcc gettext git-core libasound2-dev libaudio-dev libc6-dev libcups2-dev libdbus-1-dev libelfg0 libesd0-dev libexif-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgcrypt11-dev libgif-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libgnutls-dev libgpg-error-dev libgphoto2-2-dev libgsm1-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libhal-dev libhal-storage-dev libice-dev libjpeg62-dev liblcms1-dev libldap2-dev libmad0 libmad0-dev libmpg123-dev libncurses5-dev libodbcinstq1c2 libogg-dev  libopenal-dev libopenal1 libpng12-dev libpopt-dev libsane-dev libsm-dev libssl-dev libtasn1-3-dev libtiff4-dev libtiffxx0c2 libusb-dev libvorbis-dev libvorbisfile3 libx11-dev libxau-dev libxcomposite-dev libxcursor-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-dev libxmu-dev libxmu-headers libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libxv-dev libxxf86vm-dev m4 make mesa-common-dev unixodbc unixodbc-dev x11proto-composite-dev x11proto-core-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-video-dev x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev"

# Linux specific:
debian_linux_pkgs="libcapi20-3 libcapi20-dev libieee1284-3-dev linux-libc-dev prelink"

#----------------------------------------------------------------------------
# Ubuntu data
ubuntu_common_pkgs="bison ccache cvs flex fontforge gcc gettext git-core libasound2-dev libaudio-dev libc6-dev libcapi20-3 libcapi20-dev libdbus-1-dev libesd0-dev libexif-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgcrypt11-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libgnutls-dev libgpg-error-dev libgphoto2-2-dev libgsm1-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libhal-dev libice-dev libieee1284-3-dev liblcms1-dev libldap2-dev libmad0 libmad0-dev libmpg123-dev libncurses5-dev libogg-dev  libopenal-dev libopenal1 libpng12-dev libpopt-dev libsm-dev libssl-dev libtasn1-3-dev libtiffxx0c2 libusb-dev libvorbis-dev libvorbisfile3 libx11-dev libxau-dev libxcomposite-dev libxcursor-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-dev libxmu-dev libxmu-headers libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libxv-dev libxxf86vm-dev linux-libc-dev m4 make mesa-common-dev unixodbc unixodbc-dev x11proto-composite-dev x11proto-core-dev x11proto-fixes-dev  x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-video-dev x11proto-xext-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev libelfg0 libgif-dev libhal-storage-dev libjack-dev"

ubuntu_gutsy_pkgs="cogito libcupsys2-dev libfreebob0 libglib1.2-dev libjpeg62-dev libltdl3 libltdl3-dev liblzo-dev libodbcinstq1c2 libopencdk8-dev libsane-dev libtiff4-dev obcinst1debian1 xrender-dev x11proto-render-dev x-dev "

ubuntu_hardy_pkgs="libcupsys2-dev libfreebob0 libglib1.2-dev libjpeg62-dev libltdl3 libltdl3-dev liblzo-dev libodbcinstq1c2 libopencdk10-dev libosmesa6-dev libsane-dev libtiff4-dev odbcinst1debian1 x-dev "

ubuntu_ibex_pkgs="libcups2-dev libfreebob0 libglib1.2-dev libjpeg62-dev liblzo-dev libltdl7 libltdl7-dev libodbcinstq1c2 libosmesa6-dev libsane-dev libtiff4-dev odbcinst1debian1 x-dev "

ubuntu_jaunty_pkgs="libcups2-dev libfreebob0 libglib1.2-dev libjpeg62-dev liblzo-dev libltdl7 libltdl7-dev libodbcinstq1c2 libosmesa6-dev libsane-dev libtiff4-dev odbcinst1debian1 x-dev "

ubuntu_karmic_pkgs="libcups2-dev libfreebob0 libjpeg62-dev liblzo2-dev libltdl7 libltdl7-dev libgstreamermm-0.10-dev libodbcinstq1c2 libosmesa6-dev libsane-dev libtiff4-dev odbcinst1debian1 prelink x-dev "

ubuntu_maverick_pkgs="libcups2-dev libfreebob0 libjpeg62-dev liblzo2-dev libltdl7 libltdl7-dev libgstreamermm-0.10-dev libodbcinstq1c2 libosmesa6-dev libsane-dev libtiff4-dev odbcinst prelink "

ubuntu_oneiric_pkgs="libcups2-dev libjpeg62-dev liblzo2-dev libltdl7 libltdl7-dev libgstreamermm-0.10-dev libodbcinstq1c2 libosmesa6-dev libsane-dev libtiff4-dev odbcinst prelink "

ubuntu_precise_pkgs="libcups2-dev libjpeg-turbo8-dev libosmesa6-dev libsane-dev libtiff4-dev libv4l-dev oss4-dev prelink winbind "

ubuntu_quantal_pkgs="libcups2-dev libjpeg-turbo8-dev libosmesa6-dev libsane-dev libtiff5-dev libv4l-dev oss4-dev prelink winbind "

ubuntu_64_ibex_usr_lib32_sos="libcapi20.so.3 libcrypto.so.0.9.8 libcups.so.2 libfontconfig.so.1 libfreetype.so.6 libGL.so.1 libGLU.so.1 libgnutls.so.26 libgphoto2_port.so.0 libgphoto2.so.2 libhal.so.1 libjack.so.0 libjpeg.so.62 libmpg123.so.0.2.4 liblcms.so.1 libodbc.so.1 libpng12.so.0 libsane.so.1 libssl.so.0.9.8 libX11.so.6 libXcomposite.so.1 libXcursor.so.1 libXext.so.6 libXinerama.so.1 libXi.so.6 libxml2.so.2 libXrandr.so.2 libXrender.so.1 libxslt.so.1 libXxf86vm.so.1 libz.so.1"

ubuntu_64_ibex_lib32_sos="libdbus-1.so.3"

#----------------------------------------------------------------------------
# rpm-based distros

fedora_pkgs="alsa-lib-devel audiofile-devel bison cups-devel dbus-devel esound-devel flex fontconfig-devel fontforge freeglut-devel freetype-devel gcc giflib-devel git gnutls-devel gsm-devel gstreamer-plugins-base-devel isdn4k-utils-devel lcms-devellibgphoto2-devel libICE-devel libjpeg-devel libpng-devel libSM-devel libusb-devel libv4l-devel libX11-devel libXau-devel libXcomposite-devel libXcursor-devel libXext-devel libXi-devel libXinerama-devel libxml2-devel libXrandr-devel libXrender-devel libxslt-devel libXt-devel libXv-devel libXxf86vm-devel make mesa-libGL-devel mesa-libGLU-devel mesa-libOSMesa-devel ncurses-devel openal-soft-devel openldap-devel openssl-devel patch pkgconfig prelink samba-winbind sane-backends-devel xorg-x11-proto-devel"

suse_common_pkgs="alsa-devel audiofile bison capi4linux-devel cups-devel desktop-file-utils flex fontconfig-devel freeglut-devel freetype2-devel gcc giflib-devel git-core glibc-devel libgphoto2-devel liblcms-devel libxml2-devel libxslt-devel make Mesa-devel ncurses-devel openldap2-devel unixODBC-devel update-desktop-files xorg-x11-devel zlib-devel"

suse_11_1_pkgs="gnutls-devel hal-devel jack-devel libjpeg-devel libpng-devel openssl-devel pkgconfig"

suse_12_2_pkgs="libgnutls-devel libjack-devel libjpeg62-devel libopenssl-devel libpng12-compat-devel libudev-devel pkg-config"


#----------------------------------------------------------------------------
# Code

# For some reason, Debian/KFreeBSD has this, but it is broken...
case "`uname -s`" in
    *Linux*) lsb_release_path=`which lsb_release 2>/dev/null`;;
esac

if test "$lsb_release_path" != ""
then
  distro=`lsb_release -i -r -s`
elif test -f /etc/issue
  then
    distro=`head -n 1 /etc/issue`
else
  echo "Don‘t know how to identify your OS."
fi

case $distro in
*Alpine*Linux*) apk add $alpine_pkgs;;
Linux*Mint*4|Ubuntu*7.10) apt-get install $ubuntu_common_pkgs $ubuntu_gutsy_pkgs;;
Linux*Mint*5|Ubuntu*8.04) apt-get install $ubuntu_common_pkgs $ubuntu_hardy_pkgs;;
Linux*Mint*6|Ubuntu*8.10) apt-get install $ubuntu_common_pkgs $ubuntu_ibex_pkgs;;
Linux*Mint*7|Ubuntu*9.04) apt-get install $ubuntu_common_pkgs $ubuntu_jaunty_pkgs;;
Linux*Mint*8|Ubuntu*9.10) apt-get install $ubuntu_common_pkgs $ubuntu_karmic_pkgs;;
Linux*Mint*9|Ubuntu*10.04) apt-get install $ubuntu_common_pkgs $ubuntu_karmic_pkgs;;
Linux*Mint*10|Ubuntu*10.10) apt-get install $ubuntu_common_pkgs $ubuntu_maverick_pkgs;;
Linux*Mint*11|Ubuntu*11.04) apt-get install $ubuntu_common_pkgs $ubuntu_maverick_pkgs;;
Linux*Mint*12|Ubuntu*11.10) apt-get install $ubuntu_common_pkgs $ubuntu_oneiric_pkgs;;
Linux*Mint*13|Ubuntu*12.04) apt-get install $ubuntu_common_pkgs $ubuntu_precise_pkgs;;
Linux*Mint*14|Ubuntu*12.10) apt-get install $ubuntu_common_pkgs $ubuntu_quantal_pkgs;;
Fedora*release*) yum install $fedora_pkgs ;;
SUSE*LINUX*11.1) zypper install $suse_common_pkgs $suse_11_1_pkgs ;;
SUSE*LINUX*12.2) zypper install $suse_common_pkgs $suse_12_2_pkgs ;;
Debian*Hurd*) apt-get install $debian_common_pkgs ;;
Debian*Linux*) apt-get install $debian_common_pkgs $debian_linux_pkgs ;;
Debian*6.0.*) apt-get install $debian_common_pkgs $debian_linux_pkgs ;;
Debian*kFreeBSD*) apt-get install $debian_common_pkgs ;;
*) echo "distro $distro not supported"; exit 1;;
esac

set -x
if test `uname -m` = x86_64
then

# Provide plain old .so names for given libraries
# Usage: linksos dir foo.so.x bar.so.y ...
linksos()
{
    dir=$1
    shift
    for lib
    do
        barename=`echo $lib | sed ‘s/\.so\..*$/.so/‘ `
        if test -f $dir/$lib && test ! -f $dir/$barename 
        then
            ln -s $dir/$lib $dir/$barename
        fi
    done
}

    case $distro in
    Linux*Mint*7|Linux*Mint*8|Ubuntu*8.04|Ubuntu*8.10|Ubuntu*9.04|Ubuntu*9.10) 
        apt-get install ia32-libs lib32asound2-dev lib32z1-dev 
        linksos /usr/lib32 $ubuntu_64_ibex_usr_lib32_sos
        linksos /lib32 $ubuntu_64_ibex_lib32_sos
        # Special cases
        test -f /usr/lib32/libpng.so || ln -s /usr/lib32/libpng12.so /usr/lib32/libpng.so
        test -f /usr/lib32/libldap.so || ln -s /usr/lib32/libldap-2.4.so /usr/lib32/libldap.so
        test -f /usr/lib32/liblber.so || ln -s /usr/lib32/liblber-2.4.so.2 /usr/lib32/liblber.so
        test -f /usr/lib32/libldap_r.so || ln -s /usr/lib32/libldap_r-2.4.so.2 /usr/lib32/libldap_r.so
        # For some reason not installed by default
        apt-get install lib32ncurses5-dev
        ;;
    Fedora*release*)
        yum install alsa-lib-devel.i686 audiofile-devel.i686 cups-devel.i686 dbus-devel.i686 esound-devel.i686             fontconfig-devel.i686 freetype.i686 freetype-devel.i686 giflib-devel.i686 glib2-devel.i686 gsm-devel.i686             gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 hal-devel.i686             lcms-devel.i686 libICE-devel.i686 libjpeg-turbo-devel.i686 libpng-devel.i686 libSM-devel.i686             libusb-devel.i686 libv4l-devel.i686 libX11-devel.i686 libXau-devel.i686 libXcomposite-devel.i686             libXcursor-devel.i686 libXext-devel.i686 libXi-devel.i686 libXinerama-devel.i686             libxml2-devel.i686 libXrandr-devel.i686  libXrender-devel.i686 libxslt-devel.i686             libXt-devel.i686 libXv-devel.i686 libXxf86vm-devel.i686 mesa-libGL-devel.i686             mesa-libGLU-devel.i686 ncurses-devel.i686 openal-soft-devel.i686 openldap-devel.i686 \ 
            openssl-devel.i686 zlib-devel.i686 sane-backends-devel.i686             xorg-x11-proto-devel glibc-devel.i686 prelink libstdc++-devel.i686 pulseaudio-libs-devel.i686             gnutls-devel.i686 libgphoto2-devel.i686 openal-soft-devel.i686 isdn4k-utils-devel.i686             gsm-devel.i686 libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686
        ;;
    Linux*Mint*9|Linux*Mint*10|Linux*Mint*11|Ubuntu*10.04|Ubuntu*10.10|Ubuntu*11.04)
        apt-get install ia32-libs lib32asound2-dev lib32ncurses5-dev lib32v4l-dev lib32z1-dev
        ;;
    *)
        echo "I do not know how to install 32 bit libraries for distro $distro yet"
        ;;
    esac
fi

这个过程需要的时间比较长,安装完成了以后再编译一次./configure --enable-win64或者./configure
----------------------------------------脚本内容--------------------------------------------------------
看到提示这个:configure: Finished. Do ‘make‘ to compile Wine.
这个时候输入:make && make install
make的时间很长,耐心等待
安装好了以后,执行ln -s /usr/local/bin/wine64 /usr/local/bin/wine
不然执行winecfg的时候会报错:/usr/local/bin/winecfg: line 52: exec: wine: not found
打开winecfg以后添加需要执行的exe的程序文件

linux下wine安装

标签:

原文地址:http://www.cnblogs.com/stone08/p/5437172.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!