---
title: "安装gcc包时报 configure: error: no acceptable C compiler found in $PATH错误"
author: "yonge812"
date: "2013-01-18T19:01:12Z"
tags: ["GCC", "Linux"]
categories: ["编程语言"]
slug: "gcc-configure-error-no-acceptable-c-compiler-found-in-path"
draft: false
lastmod: "2013-01-18T19:01:12Z"
id: 1772315
url: "https://yonge812.iteye.com/blog/1772315"
---

今天安装nginx时，报错说少gcc包，结果在网上下了gcc源码进行编译、安装时报了“configure: error: no acceptable C compiler found in $PATH”这个错误，原来编译gcc源代码时也需要用到gcc包，需要下载一个rpm的二进制包进行安装，然后才可以编译之前下载的源代码。网上gcc的二进制包很难找，找了好久找到了一个：[http://pkgs.org/ubuntu-11.10/ubuntu-main-i386/gcc\_4.6.1-2ubuntu5\_i386.deb/download/](http://pkgs.org/ubuntu-11.10/ubuntu-main-i386/gcc_4.6.1-2ubuntu5_i386.deb/download/)