nginx installation error: c compiler cc is not found

The error I encountered when installing the software nginx today: c compiler cc is not found

Checked the information on the Internet, the solution is not complicated.

First describe the environment:

  • Server: CentOS 7
  • nginx:2.3.1

The reason is because the package of gcc-c++ is missing

The solution is very simple, execute: yum -y install gcc-c++

Follow the official account " Python Column ", and reply to " Machine Learning E-books " in the background to get 100 e-books related to machine e-learning.

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324216230&siteId=291194637