Install the GCC compiling environment in centos

Source: Internet
Author: User

 Today, I started centos on a virtual machine, but before I want to share files on a Windows Host in Linux, I need to install vmware-tools first. What is the location of GCC... So we started to install GCC.

Installing GCC also requires a correct sequence. For example, GCC depends on glibc-devel; glibc-devel depends on glibc-headers; glibc-headers depends on Kernel-headers.

But this is not really the end. GCC also depends on cloog-PPL and CPP. However, when cloog-PPL is installed, libppl is prompted. so.7 and libppl_c.so.2 is needed by cloog-PPL; libmp Fr. so.1 is needed by CPP. The former can be solved by the ppl-*. RPM package, and the latter can be solved by the mpfr-*. RPM package.

Therefore, the general order should be as follows:

Kernel-headers

Glibc-headers

Glibc-devel

PPL

Cloog-PPL

Mpfr

CPP

Gcc

It can basically end.

If the Linux environment is different, the problems may be different, but we also need to find the rules, such as libppl. so.7 and libppl_c.so.2 is needed by cloog-PPL; I found the ppl package to provide dependent resources for it. When libmp Fr. so.1 is needed by CPP, the mpfr package provides resources for it. In this case, the character after Lib is usually the name of the dependent package. Although the character cannot be 100%, it is correct, but it is sufficient to deal with common situations.

 

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.