1st, download winesource code package, wine_1.4.1.tar.bz2: http://pan.baidu.com/s/147oLs flex-2.5.33.tar.bz2: http://pan.baidu.com/s/1vJJS6
2. decompress and run
[Root @ localhost ~] Tar jxvf wine-1.2.tar.bz2
3. Enter the wine directory
[Root @ localhost ~] Cd wine-1.2
4. Run configure
[Root @ localhost wine-1.2]./configure
5. Check dependencies automatically,
The first error is that the C compiler does not exist.
6. Install the C compiler GCC
[Root @ localhost wine-1.2] yum install gcc *
7. Run configure again.
[Root @ localhost wine-1.2]./configure
8. The second error is prompted that the flex version is not available.
9, because the use of yum to install flex version less than Wine requirements 2.5.32, so had to go to the Flex official website to download the latest version: http://flex.sourceforge.net/
10. Download flex version 2.5.35 in tar.gz. The download link is provided at the bottom of the article ~
11. decompress the package
[Root @ localhost ~] Tar jxvf flex-2.5.35.tar.gz
12. Go to the flex-2.5.35 directory.
[Root @ localhost ~] Cd flex-2.5.35
13. Check configure
[Root @ localhost flex-2.5.35]./configure
14. Compile and install
[Root @ localhost flex-2.3.35] make
[Root @ localhost flex-2.3.35] make install
15. After resolving the Flex Problem
16. Enter the Wine directory
[Root @ localhost flex-2.3.35] cd
[Root @ localhost ~] Cd wine-1.2
17. Continue Configure
[Root @ localhost wine-1.2]./configure
18. The system prompts that the Bison component is missing.
19. Install the Bison component
[Root @ localhost wine-1.2] yum install bison *
20. Check Configure after installing Bison.
[Root @ localhost wine-1.2]./configure
21. The system prompts that the X Development component is missing.
22. Install the X Development component
[Root @ localhost wine-1.2] yum-y groupinstall "X Software Development"
23. If the preceding command cannot be executed, use the following command to install
[Root @ localhost wine-1.2] yum groupinstall "Additional Development" "Development tools" "Desktop Platform Development" "Server Platform Development"
24. Check Configure after installation.
[Root @ localhost wine-1.2]./configure
25. After the Configure check is complete, you can start compilation and installation.
[Root @ localhost wine-1.2] make
[Root @ localhost wine-1.2] make install
26. Wine can be used after a long compilation process.