close

[Solved] error: command ‘gcc’ failed with exit status 1 on CentOS

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error: command ‘gcc’ failed with exit status 1 on CentOS in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How error: command ‘gcc’ failed with exit status 1 on CentOS Error Occurs?

Today I get the following error: command ‘gcc’ failed with exit status 1 on CentOS in python.

How To Solve error: command ‘gcc’ failed with exit status 1 on CentOS Error ?

  1. How To Solve error: command 'gcc' failed with exit status 1 on CentOS Error ?

    To Solve error: command 'gcc' failed with exit status 1 on CentOS Error ” error: command 'gcc' failed with exit status 1 “. the installation failed because of missing python-devel and some dependencies.

  2. error: command 'gcc' failed with exit status 1 on CentOS

    To Solve error: command 'gcc' failed with exit status 1 on CentOS Error ” error: command 'gcc' failed with exit status 1 “. the installation failed because of missing python-devel and some dependencies.

Solution 1

” error: command ‘gcc’ failed with exit status 1 “. the installation failed because of missing python-devel and some dependencies.

the best way to correct gcc problem:

You need to reinstall gcc , gcc-c++ and dependencies.

For python 2.7

$ sudo yum -y install gcc gcc-c++ kernel-devel
$ sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel
$ pip install "your python packet"

For python 3.4

$ sudo apt-get install python3-dev
$ pip install "your python packet"

Hope this will help.

Solution 2

Is gcc installed?

sudo yum install gcc

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read