下载wine(非RPM包):可以从www.winehq.org下载.我自己下的是Stable的,wine-1.0.1。
wine-1.1.1,下载wine-1.1.1.tar.bz2。用以下方法编译wine:
用wineinstall安装:用普通用户登录,解压wine-1.1.1.tar.bz2,解压后的目录就是源码安装包,进入该目录。运行:./tools/wineinstall按提示回答就可以了。
在我电脑上的操作如下:
cd 桌面
tar jxvf wine-1.1.1.tar.bz2
cd wine-1.1.1
./tools/wineinstall
之后它会运行./configure,然后显示:We need to install wine as root user, do you want us to build wine,’su root’ and install Wine? Enter ‘no’ to continue without installing(yes/no)
yes 回车
首先提示为:
configure: error: no suitable flex found. Please install the ‘flex’ package.
我们可以运行:sudo apt-get install flex 解决。
再次运行./tools/wineinstall
提示为:
configure: error: no suitable flex found. Please install the ‘bison‘ package.
我们可以运行:sudo apt-get install bison解决
提示为:
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.