免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2516 | 回复: 4
打印 上一主题 下一主题

CentOS 5.4编译安装Wine [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-03-01 16:19 |只看该作者 |倒序浏览
CentOS 5.4编译安装Wine








首先,下载Wine源码包

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的结果是只有这个版本

只好去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"

安装完成之后继续检查Configure
[root@localhost wine-1.2]./configure
此时Configure检查完成之后即可开始编译安装
[root@localhost wine-1.2]make
[root@localhost wine-1.2]make install
经历漫长的编译过程即可使用Wine了

论坛徽章:
0
2 [报告]
发表于 2012-03-01 22:27 |只看该作者
谢谢分享

论坛徽章:
0
3 [报告]
发表于 2012-07-12 11:44 |只看该作者
我的到这个错误不知道怎么弄了
configure: 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.  
按你说的[root@localhost wine-1.2]yum -y groupinstall "X Software Development"出现了又一个错误

[root@centos6 wine-1.3.35]# yum -y groupinstall "X Software Development"
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* rpmforge: ftp.riken.jp
* updates: mirrors.btte.net
Setting up Group Process
Checking for new repos for mirrors
Warning: Group X Software Development does not exist.
No packages in any requested group available to install or update
请问要怎么解决  我装1.4版本的wine 一样的错误  我新手  不太明白  希望能帮我解决

论坛徽章:
0
4 [报告]
发表于 2013-05-21 18:20 |只看该作者
我也遇到楼上的问题,用的是centos6.4
[root@livedvd wine-1.4.1]# yum -y groupinstall "X Software Development"
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
Setting up Group Process
Checking for new repos for mirrors
Warning: Group X Software Development does not exist.
No packages in any requested group available to install or update
也希望能够解决,谢谢!

论坛徽章:
19
CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-05-20 10:46:44CU大牛徽章
日期:2013-05-20 10:46:38CU大牛徽章
日期:2013-05-20 10:46:31CU大牛徽章
日期:2013-05-20 10:46:25CU大牛徽章
日期:2013-05-20 10:46:18CU大牛徽章
日期:2013-04-17 11:19:51CU大牛徽章
日期:2013-04-17 11:19:42CU大牛徽章
日期:2013-04-17 11:19:37CU大牛徽章
日期:2013-04-17 11:19:32CU大牛徽章
日期:2013-04-17 11:19:28
5 [报告]
发表于 2013-05-21 20:02 |只看该作者
这个板块不是Linux板块,使移动操作系统板块

不过也挺感谢LZ分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP