CentOS 5 4編譯安裝Wine

2021-09-01 03:52:47 字數 1696 閱讀 4395

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

自動檢查相關依賴關係

第乙個提示錯誤是

沒有c編譯器

安裝c編譯器gcc

[root@localhost wine-1.2]yum install gcc*

然後繼續執行configure

[root@localhost wine-1.2]./configure

提示第二個錯誤

沒有flex版本

於是按照常理yum安裝

[root@localhost wine-1.2]yum install flex*

提示安裝成功

繼續configure

[root@localhost wine-1.2]./configure

此處提示flex版本過低

檢查flex版本

[root@localhost wine-1.2]flex --version

提示flex版本是2.5.4

低於wine要求的2.5.32

而yum update flex的結果是只有這個版本

然後解壓

[root@localhost ~]tar jxvf flex-2.5.35.tar.gz

進入flex-2.5.35目錄

[root@localhost ~]cd flex-2.5.35

然後檢查configure

[root@localhost flex-2.5.35]./configure

然後編譯安裝

[root@localhost flex-2.3.35]make

[root@localhost flex-2.3.35]make install

解決flex問題之後

進入wine目錄

[root@localhost flex-2.3.35]cd

[root@localhost ~]cd wine-1.2

繼續configure

[root@localhost wine-1.2]./configure

提示缺少bison元件

安裝bison元件

[root@localhost wine-1.2]yum install bison*

bison安裝完成之後繼續檢查configure

[root@localhost wine-1.2]./configure

此時提示缺少x development元件

安裝x development元件

[root@localhost wine-1.2]yum -y groupinstall "x software development"

安裝完成之後繼續檢查configure

[root@localhost wine-1.2]./configure

此時configure檢查完成之後即可開始編譯安裝

[root@localhost wine-1.2]make

[root@localhost wine-1.2]make install

經歷漫長的編譯過程即可使用wine了

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...

CentOS 5 4 安裝和解除安裝桌面

顯示系統已經安裝的元件,和可以安裝的元件 yum grouplist 如果系統安裝之初採用最小化安裝,沒有安裝xwindow,那麼先安裝 yum groupinstall x window system 安裝gnome桌面環境 yum groupinstall gnome desktop envir...

CentOS 5 4 安裝和解除安裝桌面

顯示系統已經安裝的元件,和可以安裝的元件 yum grouplist 如果系統安裝之初採用最小化安裝,沒有安裝xwindow,那麼先安裝 yum groupinstall x window system 安裝gnome桌面環境 yum groupinstall gnome desktop envir...