简体   繁体   English

无法在Linux上正确安装gcc

[英]not able to install gcc correctly on linux

when i enter follwing command: 当我输入以下命令时:

yum install gcc

this gives me that latest version of gcc compiler installed on your system, but when i am going to run simple c file as following, it gives me the error as following 这给了我您的系统上安装的最新版本的gcc编译器,但是当我要如下运行简单的c文件时,它给了我以下错误

[root@localhost ~]# gcc abc.c
In file included from /usr/include/features.h:385,
             from /usr/include/stdio.h:28,
             from abc.c:1:
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory

尝试安装这些:

yum install glibc glibc-devel gcc-c++

在Fedora 23+中:

sudo dnf install glibc-devel.x86_64

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM