1. Execute: sudoapt-getinstallgcclibc6-devfakerootlibglib1.2-devlibglib2.0-devlibltdl3-devlibmad0-devlibmng-devlibodbcinstq1c2libogg-devlibpng12-devlibqt3-headerslibqt3-mt-devl on Ubuntu7.10 Terminal
1. Run the following command on the Ubuntu 7.10 terminal:
Sudo apt-get install gcc libc6-dev fakeroot libglib1.2-dev libglib2.0-dev libltdl3-dev libmad0-dev libmng-dev unzip libogg-dev libpng12-dev libqt3-headers libqt3-mt-dev libvorbis-dev libxft-dev libxi-dev libxinerama-libdev xmu- 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 xlibs-dev fontforge flex bison libxext6
During environment setup, you must insert the UBUNTU 7.10 CD. (Note: The xlibs-dev package may not exist. Please change the source or xlibs-dev to xlibs-static-dev)
2. In http://www.winehq.org /? Announce = latest download wine from the top two addresses. My version is 0.9.52.
Decompress wine:
Cd ~
Tar xjvf wine-0.9.52.tar.bz2 (downloaded wine Package)
Cd wine-0.9.52/
Sudo./configure (check whether the dependency of the wine compiling environment package is passed. If "xxx package" is missing, Run "sudo apt-get install xxx ")
3. After checking the compiling environment, the system will prompt you to run "make depend & make". It will be OK if it is executed.
Sudo make depend & make
Then wait patiently! Gaga !!
After the compilation is complete, the system prompts "wine build complete". Enter "sudo make install" to complete the compilation.