光明浩赫 發表於 2024-1-29 00:00:00

ubuntu12.04 命令行安装Wine1.7的方法

<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        打开终端执行一下命令,在安装过程中会提示你是否同意协议,点击Enter: <br><br>
        sudo add-apt-repository ppa:ubuntu-wine/ppa <br>
        sudo apt-get update &amp;&amp; sudo apt-get install wine1.5<br><br><strong>Ubuntu 13.10 编译安装Wine 1.7</strong></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        先安装依赖的库:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        sudo apt-get install flex bison qt4-qmake<br>
        apt-get install libfreetype6-dev<br>
        apt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-dev <br>
        apt-get install libxrender-dev<br>
        sudo apt-get install libgl1-mesa-dev<br>
        sudo apt-get install libglu1-mesa-dev<br>
        sudo apt-get install freeglut3-dev<br>
        apt-get install prelink <br>
        apt-get install libasound2-dev</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        下载最新的源代码:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        http://prdownloads.sourceforge.net/wine/wine-1.7.4.tar.bz2<br>
        http://mirrors.ibiblio.org/wine/source/1.7/wine-1.7.4.tar.bz2</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        Wine 1.7.4 发布</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        解压源代码到当前用户目录下,进入目录:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        tar jxvf wine-1.7.4.tar.bz2 <br>
        cd wine-1.7.4</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        ./configure --enable-win64</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        creating Makefile rules... done<br>
        configure: creating ./config.status<br>
        config.status: creating Make.rules<br>
        config.status: creating Make.tmp<br>
        config.status: creating include/config.h<br>
        config.status: linking AUTHORS to dlls/shell32/AUTHORS<br>
        config.status: linking tools/winewrapper to wine<br>
        config.status: linking tools/winewrapper to wine64<br>
        config.status: executing include/stamp-h commands<br>
        config.status: executing dlls/gdi32/dibdrv commands<br>
        config.status: executing dlls/gdi32/enhmfdrv commands<br>
        config.status: executing dlls/gdi32/mfdrv commands<br>
        config.status: executing dlls/kernel32/nls commands<br>
        config.status: executing dlls/user32/resources commands<br>
        config.status: executing dlls/wineps.drv/data commands<br>
        config.status: executing include/wine commands<br>
        config.status: executing Makefile commands</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        configure: libxcursor development files not found, the Xcursor extension won't be supported.<br>
        configure: libxi development files not found, the Xinput extension won't be supported.<br>
        configure: libxrandr development files not found, XRandr won't be supported.<br>
        configure: libxinerama development files not found, multi-monitor setups won't be supported.<br>
        configure: libxcomposite development files not found, Xcomposite won't be supported.<br>
        configure: libOSMesa development files not found (or too old), OpenGL rendering in bitmaps won't be supported.<br>
        configure: OpenCL development files not found, OpenCL won't be supported.<br>
        configure: libdbus development files not found, no dynamic device support.<br>
        configure: libgnutls development files not found, no schannel support.<br>
        configure: lib(n)curses development files not found, curses won't be supported.<br>
        configure: libsane development files not found, scanners won't be supported.<br>
        configure: libv4l development files not found.<br>
        configure: libgphoto2 development files not found, digital cameras won't be supported.<br>
        configure: libgphoto2_port development files not found, digital cameras won't be auto-detected.<br>
        configure: liblcms2 development files not found, Color Management won't be supported.<br>
        configure: gstreamer-0.10 base plugins development files not found, gstreamer support disabled<br>
        configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.<br>
        configure: libcapi20 development files not found, ISDN won't be supported.<br>
        configure: libcups development files not found, CUPS won't be supported.<br>
        configure: fontconfig development files not found, fontconfig won't be supported.<br>
        configure: libgsm development files not found, gsm 06.10 codec won't be supported.<br>
        configure: libtiff development files not found, TIFF won't be supported.<br>
        configure: libmpg123 development files not found (or too old), mp3 codec won't be supported.<br>
        configure: libopenal development files not found (or too old), OpenAL won't be supported.<br>
        configure: libldap (OpenLDAP) development files not found, LDAP won't be supported.</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        configure: Finished.  Do 'make' to compile Wine.</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        现在可以编译了。运行make,等待吧。一个小时候编译完成。然后运行make install</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        或者可以以非root用户的身份进入tools目录,运行:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        ./wineinstall</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        它会自动编译并安装程序,中间会提示输入管理员密码。</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        安装到了/usr/local/bin目录下</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        运行命令检查版本:</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        ine64 --version<br>
        wine-1.7.4</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        然后创建一个wine链接,否则很多程序不能用, 比如winecfg。</p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
        sudo ln -s /usr/local/bin/wine64 /usr/local/bin/wine</p>
頁: [1]
查看完整版本: ubuntu12.04 命令行安装Wine1.7的方法