1、在Ubuntu 7.10终端执行:
sudo apt-get install gcc libc6-dev fakeroot libglib1.2-dev libglib2.0-dev libltdl3-dev libmad0-dev libmng-dev libodbcinstq1c2 libogg-dev libpng12-dev libqt3-headers libqt3-mt-dev libvorbis-dev libxft-dev libxi-dev libxinerama-dev libxmu-dev libxmu-headers libxmuu-dev libxpm-dev libxtrap-dev libxtst-dev libxv-dev libxxf86dga-dev qt3-dev-tools render-dev unixodbc-dev x-dev x11proto-record-dev x11proto-trap-dev x11proto-video-dev x11proto-xf86dga-dev xlibs-dev fontforge flex bison libxext6
在搭建环境的过程中要求插入UBUNTU 7.10光盘。(注意:有可能提示xlibs-dev 包不存在,请换源或者将xlibs-dev换成xlibs-static-dev)
2、在http://www.winehq.org/?announce=latest 最上面两个地址下载wine 我下的是0.9.52版
解压wine:
cd ~
tar xjvf wine-0.9.52.tar.bz2(下载的wine压缩包)
cd wine-0.9.52/
sudo ./configure (检查wine编译环境包依赖是否通过,如果提示缺少“xxx package”,请执行“sudo apt-get install xxx”)
3、编译环境检测完毕后会提示运行“make depend && make” 只要执行就OK了
sudo make depend && make
然后就是耐心等待!嘎嘎!!
编译完成后会提示“wine build complete”,这时输入“sudo make install”就大功告成了。