no acceptable C compiler found in $PATH

今天给服务器安装PostgreSQL,configure的时候就遇到了这个问题:

no acceptable C compiler found in $PATH

因为是centos linux,默认可以采用yum方式安装,则采用如下命令安装gcc编译器即可:

# yum -y install gcc

安装更新了如下几个组件:

 

gcc 4.1.2-44.el5

binutils 2.17.50.0.6-9.el5

cpp 4.1.2-44.el5

glibc-devel 2.5-34.el5_3.1

glibc-headers 2.5-34.el5_3.1

kernel-headers 2.6.18-164.el5

libgomp 4.3.2-7.el5

posted @ 2011-11-29 20:58  shuaixf  阅读(324)  评论(0编辑  收藏  举报