CentOS 6.0 編譯安裝Wine

來源:互聯網
上載者:User

PS:由於我用的是centos6,跟網上的5.*版本教程有所不同,在網上資料的基礎上有所改動

首先,下載Wine源碼包

www.winehq.org
下載Stable版本的Gz2包
解壓運行
[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*
提示安裝成功



/**************************(由於我用的是centos6,我用的也是最新版本的flash,沒有出現這一步,各人看情況而定)*************************************

繼續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的結果是只有這個版本

只好去Flex官網下載最新版
http://flex.sourceforge.net/
下載flex version 2.5.35 in tar.gz
然後解壓
[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"
(不知道為什麼在centos6 裡面這句運行不了,改為yum install X*,繼續檢查,下面提示缺少什麼就安裝什麼就可以了)




安裝完成之後繼續檢查Configure
[root@localhost wine-1.2]./configure
此時Configure檢查完成之後即可開始編譯安裝
[root@localhost wine-1.2]make
[root@localhost wine-1.2]make install
編譯過程很漫長,請耐心等待,即可使用Wine了

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.