Welcome 微信登录

首页 / 操作系统 / Linux / CentOS 5.4编译安装Wine全程记录

Wine 是一个在 Linux 下运行 Windows 应用程序的软件环境,其核心是一个 Windows 应用程序接口(API)库,作为 Linux 和 Windows 程序之间的桥梁。Wine 的官网是:http://www.winehq.org/。安装方法:首先,下载Wine源码包
下载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*
提示安装成功继续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了有关Wine的配置以及使用教程请参见其他文章,谢谢 。---------------------------------------说明:此时,只要使用 wine  /程序路径/程序名称.exe   即可成功运行在windows才能运行的软件了。如果运行是出现 Microsoft Visual C++ Runtime Library Runtime Error! 的错误提示,只需运行下面三条命令就可以解决:wget http://www.kegel.com/wine/winetrickschmod +x winetricks./winetricks vcrun2005         (注意:最后这条命令,必须在Linux系统的图形界面使用终端执行才有效)
  • 1
  • 2
  • 下一页
Linux中将Memcached注册成服务并可以随机器启动时启动服务Ubuntu 11.10下如何设置主机名相关资讯      wine  CentOS安装 
  • VMware下CentOS 6.8安装配置  (08月03日)
  • 说说 Wine + QQ 轻聊版 7.7 的安装  (12/01/2015 08:15:38)
  • 如何在 64 位 Ubuntu 15.10 中编译  (10/27/2015 15:31:18)
  • CentOS 6.x的安装过程详解  (12/04/2015 14:26:13)
  • Wine 1.8-rc1 发布下载  (11/21/2015 21:28:26)
  • Wine 1.7.52 发布下载,更多   (10/03/2015 12:35:05)
本文评论 查看全部评论 (0)
表情: 姓名: 字数