CentOS 下 安装 nginx 执行配置命令 ./configure --prefix=/opt/nginx --sbin-path=/usr/bin/nginx

 

时提示以下错误:

 

checking for OS

  Linux 2.6.32-431.el6.x86_64 x86_64checking for C compiler ... not found

 

解决:

 

执行以下命令:

 

yum -y install gcc gcc-c++ autoconf automake make

 

 

总结:安装nginx要先安装那四个依赖!!!!!!!!