安裝依賴庫**64位:
sudo apt-get install flex bison qt4-qmake libfreetype6-dev libjpeg-dev libpng-dev libxslt1-dev libxml2-dev libxrender-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev prelink libasound2-dev
功能支援庫(未全.剩餘自行增加):
sudo apt-get install mingw-w64 libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev libxcomposite-dev libosmesa-dev libdbus-1-dev libsane-dev libgphoto2-dev liblcms2-dev libpulse-dev libudev-dev libcapi20-dev libcups2-dev libkrb5-dev libmpg123-dev libopenal-dev libvulkan-dev libldap-dev libncurses5-dev libsdl2-dev
部分特殊功能庫:
每個支援庫都需要修改單獨的源,有些庫是不穩定版的
libpcap-dev:
增加源:deb buster main
sudo deepin-editor /etc/apt/sources.list
sudo apt-get install update
sudo apt-get install libpcap-dev
libfaudio-dev libgsm1-dev:
增加源:deb sid main
sudo apt-get install update
sudo apt-get install libfaudio-dev libgsm1-dev fontconfig oss4-dev
下圖的庫自行解決:
安裝依賴庫**32位:(深度linux已經不在支援32位系統)
sudo apt-get install flex:i386 bison:i386 qt4-qmake:i386 libfreetype6-dev:i386 libjpeg-dev:i386 libpng-dev:i386 libxslt1-dev:i386 libxml2-dev:i386 libxrender-dev:i386 libgl1-mesa-dev:i386 libglu1-mesa-dev:i386 freeglut3-dev:i386 prelink:i386 libasound2-dev:i386 g++-multilib gcc-multilib g++-multilib
wget
tar jxf wine-3.1.tar.xz
./configure -enable-win64
sudo make install
sudo make
wine64 -version
建立乙個wine連線
sudo ln -s /usr/local/bin/wine64 /usr/local/bin/wine
設定wine引數
winecfg
出現亂碼因為缺少字型
複製windows下的simsun.ttc字型到~/.wine/drive_c/windows/fonts/目錄下
cp simsun.ttc ~/.wine/drive_c/windows/fonts/
建立zh.reg檔案,內容如下
[hkey_local_machine\software\microsoft\windows nt\currentversion\fontsubstitutes]
"arial"="simsun"
"arial ce,238"="simsun"
"arial cyr,204"="simsun"
"arial greek,161"="simsun"
"arial tur,162"="simsun"
"courier new"="simsun"
"courier new ce,238"="simsun"
"courier new cyr,204"="simsun"
"courier new greek,161"="simsun"
"courier new tur,162"="simsun"
"fixedsys"="simsun"
"helv"="simsun"
"helvetica"="simsun"
"ms sans serif"="simsun"
"ms shell dlg"="simsun"
"ms shell dlg 2"="simsun"
"system"="simsun"
"tahoma"="simsun"
"times"="simsun"
"times new roman ce,238"="simsun"
"times new roman cyr,204"="simsun"
"times new roman greek,161"="simsun"
"times new roman tur,162"="simsun"
"tms rmn"="simsun"
然後輸入命令regedit zh.reg
會出現錯誤:
000f:fixme:service:scmdatabase_autostart_services auto-start service l"mountmgr" failed to start: 2
000f:fixme:service:scmdatabase_autostart_services auto-start service l"winebus" failed to start: 2
分別用下面**搜尋兩個檔案路徑。此時會出現許可權錯誤。。並且顯示出該檔案路徑,
sudo find / -name mountmgr.sys
然後用下面命令分別複製到指定目錄
cp /usr/lib64/wine/fakedlls/mountmgr.sys ~/.wine/drive_c/windows/system32/drivers/
sudo find / -name winebus.sys
然後用下面命令分別複製到指定目錄
cp /usr/local/lib64/wine/fakedlls/winebus.sys ~/.wine/drive_c/windows/system32/drivers/
再次執行regedit zh.reg
接著再執行winecfg
andale32
arial32
comic32
c++2017
CentOS 5 4編譯安裝Wine
www.winehq.org 解壓執行 root localhost tar jxvf wine 1.2.tar.bz2 進入wine目錄 root localhost cd wine 1.2 執行configure root localhost wine 1.2 configure 自動檢查相關依...
wine32和wine64共存編譯安裝方法
當前系統環境 centos 6.3 64位 因為博主要在linux系統執行apk工具aapt.exe所以就安裝了wine 此次安裝過程同時編譯了32和64版本的wine。wine32和wine64共存編譯過程如下 安裝所需要的依賴包 這些依賴包安裝時間跟自己的當前網路和機器配置有關,博主不喜歡在yu...
CentOS 5 4編譯安裝Wine手記
進入wine目錄 root localhost cd wine 1.2 執行configure root localhost wine 1.2 configure 自動檢查相關依賴關係 第乙個提示錯誤是 沒有c編譯器 安裝c編譯器gcc root localhost wine 1.2 yum ins...