Toggle navigation
Home
Java
Spring
Spring框架
SpringBoot
SpringCloud
SpringGateway
Nacos
Apollo配置中心
中间件
Redis
Mysql
ElasticSearch
算法
LeetCode
安装gcc套件
命令 : yum install gcc 起因今天在centos 7环境中安装python3时有如下提示: ``` [root@localhost Python-3.7.5]# ./config config.guess config.sub configure [root@localhost Python-3.7.5]# ./configure checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for python3.7... no checking for python3... no checking for python... python checking for --enable-universalsdk... no checking for --with-universal-archs... no checking MACHDEP... checking for --without-gcc... no checking for --with-icc... no checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/data/softpackage/Python-3.7.5': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details [root@localhost Python-3.7.5]# ``` 重点是 :configure: error: no acceptable C compiler found in $PATH 这一行,表明了没有C在环境变量中 运行上边安装命令会有输入 提示 统一输入y(偷懒默认就同意就可以了) ``` [root@localhost Python-3.7.5]# yum install gcc Loaded plugins: fastestmirror Determining fastest mirrors * base: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.tuna.tsinghua.edu.cn base | 3.6 kB 00:00:00 ................. glibc-common x86_64 2.17-292.el7 base 11 M libgcc x86_64 4.8.5-39.el7 base 102 k libgomp x86_64 4.8.5-39.el7 base 158 k Transaction Summary ================================================================================================== Install 1 Package (+6 Dependent packages) Upgrade ( 4 Dependent packages) Total download size: 48 M Is this ok [y/d/N]: ................... (10/11): gcc-4.8.5-39.el7.x86_64.rpm | 16 MB 00:00:04 Public key for kernel-headers-3.10.0-1062.4.1.el7.x86_64.rpm is not installed 47 MB 00:00:00 ETA (11/11): kernel-headers-3.10.0-1062.4.1.el7.x86_64.rpm | 8.7 MB 00:00:02 -------------------------------------------------------------------------------------------------- Total 9.0 MB/s | 48 MB 00:00:05 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-6.1810.2.el7.centos.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Is this ok [y/N]: ........ Verifying : glibc-2.17-260.el7.x86_64 12/15 Verifying : libgomp-4.8.5-36.el7.x86_64 13/15 Verifying : glibc-common-2.17-260.el7.x86_64 14/15 Verifying : libgcc-4.8.5-36.el7.x86_64 15/15 Installed: gcc.x86_64 0:4.8.5-39.el7 Dependency Installed: cpp.x86_64 0:4.8.5-39.el7 glibc-devel.x86_64 0:2.17-292.el7 glibc-headers.x86_64 0:2.17-292.el7 kernel-headers.x86_64 0:3.10.0-1062.4.1.el7 libmpc.x86_64 0:1.0.1-3.el7 mpfr.x86_64 0:3.1.1-4.el7 Dependency Updated: glibc.x86_64 0:2.17-292.el7 glibc-common.x86_64 0:2.17-292.el7 libgcc.x86_64 0:4.8.5-39.el7 libgomp.x86_64 0:4.8.5-39.el7 Complete! ```
文章分类
Nacos
SpringGateway
Nacos
Java
Spring
SpringBoot
SpringCloud
中间件
SpringGateway
Nacos
Redis
Mysql
算法
LeetCode
Apollo配置中心
ElasticSearch
Spring框架
文章标签
Redis基础知识
中间件
数据库
Mysql
算法题
面试题
软件安装
SpringFramework
ES