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编绎安装的过程相当漫长,泡杯茶慢慢等吧!