PS: Since I use centos6, it is different from the online version 5. *, and I have changed it based on the online materials.
First, download the wine source code package.
Www.winehq.org
Download the gz2 package of stable
Decompress and run
[Root @ localhost ~] Tar jxvf wine-1.2.tar.bz2
Enter the wine directory
[Root @ localhost ~] CD wine-1.2
Run configure
[Root @ localhost wine-1.2]./configure
Automatically checks Dependencies
The first error is
No C Compiler
Install C compiler gcc
[Root @ localhost wine-1.2] Yum install GCC *
Then run configure.
[Root @ localhost wine-1.2]./configure
The second error is prompted.
No flex version
So install Yum according to common sense
[Root @ localhost wine-1.2] Yum install flex *
Prompt: Installation successful
/************************** (Because I use centos6, I am also using the latest flash version. This step is not shown, depending on the situation) *************************************
Continue configure
[Root @ localhost wine-1.2]./configure
The flex version is too low.
Check the flex version
[Root @ localhost wine-1.2] flex -- version
Prompt flex version 2.5.4
2.5.32 lower than wine requirements
The result of Yum update Flex is only this version.
I had to go to the flex official website to download the latest version.
Http://flex.sourceforge.net/
Download flex version 2.5.35 in tar.gz
Decompress the package
[Root @ localhost ~] Tar jxvf flex-2.5.35.tar.gz
Go to the Flex-2.5.35 directory
[Root @ localhost ~] CD flex-2.5.35
Then check configure
[Root @ localhost flex-2.5.35]./configure
Then compile and install
[Root @ localhost flex-2.3.35] Make
[Root @ localhost flex-2.3.35] make install
After solving the flex Problem
**************************************** ***********************/
Enter the wine directory
[Root @ localhost flex-2.3.35] cd
[Root @ localhost ~] CD wine-1.2
Continue configure
[Root @ localhost wine-1.2]./configure
The system prompts that the bison component is missing.
Install the bison component
[Root @ localhost wine-1.2] Yum install bison *
Check configure after installing bison.
[Root @ localhost wine-1.2]./configure
The system prompts that the X development component is missing.
Install the X development component
[Root @ localhost wine-1.2] Yum-y groupinstall "X software development"
(I don't know why this statement cannot be run in centos6. I will change it to Yum install x * and continue the check. The following prompt will show you how to install it if nothing is missing)
Check configure after installation.
[Root @ localhost wine-1.2]./configure
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
The compilation process is long. Please wait and use wine.