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.