Total Pageviews

Tuesday, September 17, 2019

RESOLVED AWS configure: error: no acceptable C compiler found in $PATH

run ./configure

got error

configure: error: no acceptable C compiler found in $PATH

searched and find that i need gcc libraries.



When i run  yum install gcc

i got error that i cant reach outside to download the gcc libraries my AWS environment is locked. open the environment and change the file from immutable

to check if your file is immutable run below command. If you see "i" on the left side between ----i---- it means it is immutable

lsattr /etc/resolv.conf

below command will change the file from immutable


chattr -i /etc/resolv.conf

now add nameserver for the machine to reach outside 

vi /etc/resolv.conf
add below line as per your DNS server ip

nameserver yourDNSserverip

now run the command to install gcc libraries

 yum install gcc


Finally run

./configure


and it worked

No comments:

Post a Comment