CentOS 5.4编译安装Wine全程记录

Wine 是一个在 Linux 下运行 Windows 应用程序的软件环境,其核心是一个 Windows 应用程序接口(API)库,作为 Linux 和 Windows 程序之间的桥梁。Wine 的官网是:。

安装方法:

首先,下载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官网下载最新版下载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

chmod +x winetricks

./winetricks vcrun2005 (注意:最后这条命令,必须在Linux系统的图形界面使用终端执行才有效)

最好的感觉就是你什么都跟我说。

CentOS 5.4编译安装Wine全程记录

相关文章:

你感兴趣的文章:

标签云: