Centos6.8 install gcc [nanny level]

Centos6.8 install gcc [nanny level]

1. In the virtual machine settings, check both of the device status

Insert picture description here

2. Open as shown, enter packages, right click to open the terminal

Insert picture description here

3. Input the following commands separately, and press enter once for each line input

  1. rpm -ivh kernel-headers-2.6.32-642.el6.x86_64.rpm
  2. rpm -ivh libgomp-4.4.7-17.el6.x86_64.rpm
  3. rpm -ivh libstdc+±devel-4.4.7-17.el6.x86_64.rpm
  4. rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
  5. rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
  6. rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
  7. rpm -ivh cpp-4.4.7-17.el6.x86_64.rpm
  8. rpm -ivh glibc-devel-2.12-1.192.el6.x86_64.rpm
  9. rpm -ivh glibc-headers-2.12-1.192.el6.x86_64.rpm
  10. rpm -ivh gcc-4.4.7-17.el6.x86_64.rpm
  11. rpm -ivh gcc-c+±4.4.7-17.el6.x86_64.rpm

4. Test

Command: gcc -v

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43215322/article/details/109467467