Centos 6.0 compilation and installation of wine

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.