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
