ubuntu16.4安装最新版wine3.0

1.主体大致过程

$ wget  https://dl.winehq.org/wine/source/3.0/wine-3.0.tar.xz
$ tar -xvf wine-3.0.tar.xz
$ cd wine-3.0/
$ sudo ./configure
$ sudo ./configure --enable-win64  [对于64位平台]
$ sudo make && sudo make install

 2.错误

  1.执行 sudo ./configure   时报错

configure: libOSMesa 64-bit development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
configure: OpenCL 64-bit development files not found, OpenCL won't be supported.
configure: pcap 64-bit development files not found, wpcap won't be supported.
configure: libdbus 64-bit development files not found, no dynamic device support.
configure: lib(n)curses 64-bit development files not found, curses won't be supported.
configure: libsane 64-bit development files not found, scanners won't be supported.
configure: libv4l 64-bit development files not found.
configure: libgphoto2 64-bit development files not found, digital cameras won't be supported.
configure: libgphoto2_port 64-bit development files not found, digital cameras won't be auto-detected.
configure: liblcms2 64-bit development files not found, Color Management won't be supported.
configure: libpulse 64-bit development files not found or too old, Pulse won't be supported.
configure: gstreamer-1.0 base plugins 64-bit development files not found, GStreamer won't be supported.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libudev 64-bit development files not found, plug and play won't be supported.
configure: libcapi20 64-bit development files not found, ISDN won't be supported.
configure: libcups 64-bit development files not found, CUPS won't be supported.
configure: libgsm 64-bit development files not found, gsm 06.10 codec won't be supported.
configure: libkrb5 64-bit development files not found, Kerberos won't be supported.
configure: libtiff 64-bit development files not found, TIFF won't be supported.
configure: libmpg123 64-bit development files not found (or too old), mp3 codec won't be supported.
configure: libopenal 64-bit development files not found (or too old), OpenAL won't be supported.
configure: openal-soft 64-bit development files not found (or too old), XAudio2 won't be supported.
configure: libldap (OpenLDAP) 64-bit development files not found, LDAP won't be supported.

configure: WARNING: libgnutls 64-bit development files not found, no schannel support.

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

2.错误多的时候,直接执行安装依赖

sudo apt-get build-dep wine

如果执行  sudo apt-get build-dep wine 报错

正在读取软件包列表... 完成
E: 您必须在 sources.list 中指定代码源(deb-src) URI

----------------------------------以下部分来自:http://blog.csdn.net/zhqh100/article/details/52919730--------------------------------------------------

原因是我们的文件/etc/apt/source.list里的deb-src都被注释掉了,而现在我们需要,找到问题了就好解决了,可以直接vim修改该文件把deb-src的注释去掉,也可以运行“软件和更新”修改,选中下图中的“源代码”

--------------------------------------------------------------------------------------------------------------

然后重新执行 

sudo apt-get build-dep wine

4:加个参考链接 :https://www.linuxidc.com/Linux/2017-12/149285.htm



原文地址:https://www.cnblogs.com/kehaimin/p/8624487.html