CentOS涓嬬绾垮畨瑁単cc鐜锛屽浘鏂囪缁嗭紝鏂规硶鍏ㄩ潰

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS涓嬬绾垮畨瑁単cc鐜锛屽浘鏂囪缁嗭紝鏂规硶鍏ㄩ潰相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/linu' title='linu'>linu   alt   proc   pst   chm   add   ESS   寮哄埗   鍥剧墖   

CentOS涓嬬绾垮畨瑁単cc鐜锛屽浘鏂囪缁嗭紝鏂规硶鍏ㄩ潰

涓嬭浇

鏂瑰紡1锛氬鏋滄湁缃戠殑铏氭嫙鏈鸿繕娌℃湁瀹夎锛屽彲浠ョ洿鎺?/p>

yum install --downloadonly --downloaddir=/root/soft/gcc gcc

yum install --downloadonly --downloaddir=/root/soft/gcc++ gcc-c++

鏂瑰紡2锛氬鏋滄湁缃戠殑铏氭嫙鏈哄凡缁忓畨瑁呰繃锛屽彲浠?/p>

yum -y install yum-utils

yumdownloader --resolve --destdir=/root/soft/gcc gcc
yumdownloader --resolve --destdir=/root/soft/gcc++ gcc-c++

鍙互鐪嬪埌锛実cc鐨勪緷璧栧涓?/p>

鎶€鏈浘鐗? src=
gcc++鐨勪緷璧栧涓?br/>鎶€鏈浘鐗? src=
鏂瑰紡3锛氱湅鍒版垜缁欑殑渚濊禆鍖咃紝鐩存帴缃戜笂涓嬭浇濂斤紝杩欓噷鏄湴鍧€锛屽彲浠ュ湪閲岄潰鎵惧埌

http://mirrors.163.com/centos/6/os/x86_64/Packages/

http://mirrors.aliyun.com/centos/7/os/x86_64/Packages/

瀹夎鎵€闇€瑕佺殑鍖?/p>

#鍥句腑gcc鎵€绀洪渶瑕佺殑渚濊禆
cpp-4.8.5-39.el7.x86_64.rpm
gcc-4.8.5-39.el7.x86_64.rpm
glibc-devel-2.12-1.212.el6.x86_64.rpm
glibc-headers-2.17-292.el7.x86_64.rpm 
kernel-headers-3.10.0-1062.el7.x86_64.rpm
libmpc-1.0.1-3.el7.x86_64.rpm
mpfr-3.1.1-4.el7.x86_64.rpm

涓婁紶

put D:AppStoreLinuxgcccpp-4.8.5-39.el7.x86_64.rpm  /root
put D:AppStoreLinuxgccgcc-4.8.5-39.el7.x86_64.rpm  /root
put D:AppStoreLinuxgccglibc-devel-2.12-1.212.el6.x86_64.rpm  /root
put D:AppStoreLinuxgccglibc-headers-2.17-292.el7.x86_64.rpm  /root
put D:AppStoreLinuxgcckernel-headers-3.10.0-1062.el7.x86_64.rpm  /root 
put D:AppStoreLinuxgcclibmpc-1.0.1-3.el7.x86_64.rpm  /root 
put D:AppStoreLinuxgccmpfr-3.1.1-4.el7.x86_64.rpm  /root  

瀹夎

鎴戣繖灏卞己鍒跺畨瑁呬簡锛屽洜涓洪€愪釜瀹夎锛屽緢瀹规槗鍥犱负閫掕繘渚濊禆锛岃€屾姤涓€鍫嗛敊锛岄渶瑕佷笅杞戒竴鍫嗙壒鍒鐨勫寘銆?/p>

rpm  -ivh  *.rpm --nodeps --force

妫€鏌?/h3>
gcc -v

以上是关于CentOS涓嬬绾垮畨瑁単cc鐜锛屽浘鏂囪缁嗭紝鏂规硶鍏ㄩ潰的主要内容,如果未能解决你的问题,请参考以下文章

鎵嬫妸鎵嬫暀浣犲湪Windows鐜涓嬪崌绾

[PHP] layui瀹炵幇澶氬浘涓婁紶锛屽浘鐗囪嚜鐢辨帓搴忥紝鑷敱鍒犻櫎

python+opencv瀹炵幇鏈哄櫒瑙嗚鍩虹鎶€鏈?杈圭紭鎻愬彇锛屽浘鍍忔护娉紝杈圭紭妫€娴嬬畻瀛愶紝鎶曞奖锛岃溅鐗屽瓧绗﹀垎鍓?

Ubuntu18.04锛屽畨瑁匯edis鍜岀畝鍗曚娇鐢≧edis

棰樺璇濓細2020 骞磋鎬庝箞鐢?Intellij IDEA 鎼缓 Haskell 鐜

鈥滈€冪鈥濆寳浜潵鍒颁簩绾垮煄甯傦紝璋堣皥闈㈣瘯鍜岃亴涓氳鍒?/a>