-1

I have a virtual machine running RHEL7. I am trying to install GCC from source following

https://gcc.gnu.org/wiki/InstallingGCC

I am unable to do

yum groupinstall "Development Tools"

or

yum install gcc

since I haven't connected to the YUM repos.

When I try to run the ./configure I get this error:

No acceptable C Compiler found in $PATH.

How can I add a C compiler in the PATH when I am trying to install a compiler itself?

Please help me

Thomas Dickey
  • 75,040
  • 9
  • 171
  • 268
Thanu
  • 11
  • 2

1 Answers1

0

gcc (and almost any package you need from RHEL7) can be provided by CentOS7, since it is built with the same source and configuration details. You could get that (and any needed dependencies) from CentOS's website:

http://mirror.centos.org/centos/7/os/x86_64/Packages/

Thomas Dickey
  • 75,040
  • 9
  • 171
  • 268
  • Thanks a lot! This helped. Added this as my repository and was able to install development tools – Thanu Sep 18 '16 at 17:31