---
title: "configure: error: no acceptable C compiler found in $PATH"
author: "clrw"
date: "2014-08-29T17:09:48Z"
tags: []
categories: ["企业架构"]
slug: "configure-error-no-acceptable-c-compiler-found-in-path"
draft: false
lastmod: "2014-08-29T17:11:05Z"
id: 2110866
url: "https://clrw.iteye.com/blog/2110866"
---

今天在centos下安装apr时，在使用命令：

```
./configure --prefix=/usr/local/apr
```

编译的时候，报错： 

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

解决办法：安装GCC软件套件：

```
yum install gcc
```

安装完毕后再编译apr即正常。