Centos 8 安裝Wine 4.02(編譯安裝)

Wine 是什麼?官網地址

Wine (“Wine Is Not an Emulator” 的首字母縮寫)是一個能夠在多種 POSIX-compliant 操作系統(諸如 Linux,macOS 及 BSD 等)上運行 Windows 應用的兼容層。Wine 不是像虛擬機或者模擬器一樣模仿內部的 Windows 邏輯,而是將 Windows API 調用翻譯成爲動態的 POSIX 調用,免除了性能和其他一些行爲的內存佔用,讓你能夠乾淨地集合 Windows 應用到你的桌面。

1. 下載最新版的Wine, 下載地址
    

2.  解壓
    [root@yaco ~]# cd /opt/tools/wine4/
    [root@yaco wine4]# ls 
    wine-4.0.2.tar.xz
    
它是.tar.xz的文件,解壓方法:
    [root@yaco wine4]# xz -d wine-4.0.2.tar.xz 
    [root@yaco wine4]# ls
    wine-4.0.2.tar
    
解壓方法: 

文件 備註
tar -xvf file.tar 解壓 tar包
tar -zxvf file.tar.gz 解壓tar.gz
tar -xjvf file.tar.bz2 解壓 tar.bz2
tar -xZvf file.tar.Z 解壓tar.Z
unrar e file.rar 解壓rar
unzip file.zip 解壓zip

 

[root@yaco wine4]# tar -xvf wine-4.0.2.tar 
wine-4.0.2/
...........
...........
...........
[root@yaco wine4]# cd wine-4.0.2/
[root@yaco wine-4.0.2]# ls
aclocal.m4  configure.ac   fonts    LICENSE.OLD  po        tools
ANNOUNCE    COPYING.LIB    include  loader       programs  VERSION
AUTHORS     dlls           libs     MAINTAINERS  README
configure   documentation  LICENSE  Makefile.in  server

# 檢查configure
[root@yaco wine-4.0.2]# ./configure
[root@yaco wine-4.0.2]# ./configure --enable-win64

# 如果報以下錯誤,不管什麼錯誤都能解決,物理機上什麼可能都會發生,也許你報的錯和我的不一樣
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
# 或者
configure: error: FreeType 64-bit development files not found. Fonts will not be built.
Use the --without-freetype option if you really want this.

# 需要freetype依賴, yum install freetype-devel
[root@yaco wine-4.0.2]# yum install freetype-devel
[root@yaco wine-4.0.2]# ./configure --enable-win64

# 編譯make
[root@yaco wine-4.0.2]# make

# 如果沒有安裝C編譯器的,先安裝gcc, 安裝了就跳過
[root@yaco wine-4.0.2]#  yum install gcc*

# 安裝 
[root@yaco wine-4.0.2]# make install

# 檢查版本
[root@yaco wine-4.0.2]# wine64 --version

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章