Linux – Unable to install gcc compiler

gcclinux

I am trying to install gcc compiler using the command:

yum install gcc

but I am getting the error as:

Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package gcc available.
Error: Nothing to do

How can I solve this? My original question from StackOverflow.

Best Answer

RHEL / CentOS

yum install gcc should work. Try sudo yum install gcc.

If yum groupinstall "Development Tools" does not work, add sudo in front of it as well.

Check your repositories: yum repolist all

Related Question