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

技术教程 2026-01-08 20:54:11 浏览

打开终端执行一下命令,在安装过程中会提示你是否同意协议,点击Enter:sudo add-apt-repository ppa:Ubuntu-wine/ppasudo apt-get update && sudo apt-get install wine1.5 Ubuntu 13.10 编译安装Wine 1.7

先安装依赖的库:

sudo apt-get install flex bison qt4-qmakeapt-get install libfreetype6-devapt-get install libjpeg-dev libpng-dev libxslt-dev libxml2-devapt-get install libxrender-devsudo apt-get install libgl1-mesa-devsudo apt-get install libglu1-mesa-devsudo apt-get install freeglut3-devapt-get install prelinkapt-get install libasound2-dev

下载最新的源代码:

Wine 1.7.4 发布

解压源代码到当前用户目录下,进入目录:

tar jxvf wine-1.7.4.tar.bz2cd wine-1.7.4

./configure --enable-win64

creating Makefile rules... doneconfigure: creating ./config.statusconfig.status: creating Make.rulesconfig.status: creating Make.tmpconfig.status: creating include/config.hconfig.status: linking AUTHORS to dlls/shell32/AUTHORSconfig.status: linking tools/winewrapper to wineconfig.status: linking tools/winewrapper to wine64config.status: executing include/stamp-h commandsconfig.status: executing dlls/gdi32/dibdrv commandsconfig.status: executing dlls/gdi32/enhmfdrv commandsconfig.status: executing dlls/gdi32/mfdrv commandsconfig.status: executing dlls/kernel32/nls commandsconfig.status: executing dlls/user32/resources commandsconfig.status: executing dlls/wineps.drv/data commandsconfig.status: executing include/wine commandsconfig.status: executing Makefile commands

configure: libxcursor development files not found, the Xcursor extension won't be supported.configure: libxi development files not found, the Xinput extension won't be supported.configure: libxrandr development files not found, XRandr won't be supported.configure: libxinerama development files not found, multi-monitor setups won't be supported.configure: libxcomposite development files not found, Xcomposite won't be supported.configure: libOSMesa development files not found (or too old), OpenGL rendering in bitmaps won't be supported.configure: OpenCL development files not found, OpenCL won't be supported.configure: libdbus development files not found, no dynamic device support.configure: libgnutls development files not found, no schannel support.configure: lib(n)curses development files not found, curses won't be supported.configure: libsane development files not found, scanners won't be supported.configure: libv4l development files not found.configure: libgphoto2 development files not found, digital cameras won't be supported.configure: libgphoto2_port development files not found, digital cameras won't be auto-detected.configure: liblcms2 development files not found, Color Management won't be supported.configure: gstreamer-0.10 base plugins development files not found, gstreamer support disabledconfigure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.configure: libcapi20 development files not found, ISDN won't be supported.configure: libcups development files not found, CUPS won't be supported.configure: fontconfig development files not found, fontconfig won't be supported.configure: libgsm development files not found, gsm 06.10 codec won't be supported.configure: libtiff development files not found, TIFF won't be supported.configure: libmpg123 development files not found (or too old), mp3 codec won't be supported.configure: libopenal development files not found (or too old), OpenAL won't be supported.configure: libldap (OpenLDAP) development files not found, LDAP won't be supported.

configure: Finished. Do 'make' to compile Wine.

现在可以编译了。运行make,等待吧。一个小时候编译完成。然后运行make install

或者可以以非root用户的身份进入tools目录,运行:

./wineinstall

ubuntu

它会自动编译并安装程序,中间会提示输入管理员密码。

安装到了/usr/local/bin目录下

运行命令检查版本:

ine64 --versionwine-1.7.4

然后创建一个wine链接,否则很多程序不能用, 比如winecfg。

sudo ln -s /usr/local/bin/wine64 /usr/local/bin/wine

本文版权声明本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系本站客服,一经查实,本站将立刻删除。

发表评论

热门推荐