Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install gcc on AWS EC2 without using yum?

I am trying to install Redis on EC2 but it needs gcc. When I tried gcc was not installed.

Then I tried to install gcc manually and got the following error:

configure: error: could not find a working compiler, see config.log for details

How can I solve this?

like image 225
akshay hundia Avatar asked Dec 05 '22 20:12

akshay hundia


1 Answers

If you use a standard AMI Linux instance, you can install gcc simply by running:

sudo yum groupinstall "Development Tools"

On a SuSE instance, you can try:

sudo zypper install gcc
like image 140
Didier Spezia Avatar answered Dec 28 '22 11:12

Didier Spezia