centos安裝wine

來源:互聯網
上載者:User

下載wine安裝包,在官網上可以找到,相應系統還有不同的快速安裝方法:

http://www.winehq.org

解壓運行
此處若不作任何處理,下面會出現幾個錯誤:


[root@localhost ~]tar jxvf wine-1.3.13.tar.bz2進入wine目錄[root@localhost ~]cd wine-1.3.13運行configure[root@localhost wine-1.3.13]./configure自動進行檢查 第一個提示錯誤是沒有C編譯器安裝C編譯器GCC[root@localhost wine-1.3.13]yum install gcc* 然後繼續運行configure[root@localhost wine-1.3.13]./configure提示第二個錯誤沒有flex版本於是按照常理Yum安裝[root@localhost wine-1.3.13]yum install flex*提示安裝成功 繼續configure[root@localhost wine-1.3.13]./configure此處提示Flex版本過低檢查Flex版本[root@localhost wine-1.3.13]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.3.13繼續Configure[root@localhost wine-1.3.13]./configure提示缺少Bison組件安裝Bison組件[root@localhost wine-1.3.13]yum install bison* Bison安裝完成之後繼續檢查Configure[root@localhost wine-1.3.13]./configure此時提示缺少X Development組件安裝X Development組件[root@localhost wine-1.3.13]yum -y groupinstall "X Software Development" 安裝完成之後繼續檢查Configure[root@localhost wine-1.3.13]./configure此時Configure檢查完成之後即可開始編譯安裝[root@localhost wine-1.3.13]make[root@localhost wine-1.3.13]make install

64位作業系統需要設定
./configure --enable-win64
yum -y groupinstall "X Software Development"
如果上面的命令無法執行則使用下面的命令來安裝
yum groupinstall "Additional Development" "Development tools" "Desktop Platform Development" "Server Platform Development"
 
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.