centos安装wine--网摘

centos安装wine

下载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" 
或error: X development files not found. Wine will be built
         without X support, which probably isn't what you want. You will need
         to install development packages of Xlib/Xfree86 at the very least.
         Use the --without-x option if you really want this.

这里提示只需要安装Xlib或者Xfree86即可,不要两者都安装。

yum-y install xorg*
yum -y install gnome* (这个可能不成功,不过会有提示的,按提示来做就没错了)
yum -y install gdm*

按照上面的三个都安装好了,上面的问题才能解决了。安装完成之后继续检查Configure[root@localhost wine-1.3.13]./configure此时Configure检查完成之后即可开始编译安装[root@localhost wine-1.3.13]make[root@localhost wine-1.3.13]make install编绎安装的过程相当漫长,泡杯茶慢慢等吧! 


--转自 http://opkeep.com/system/linux/centos-wine.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值