问题描述:
在Ubuntu上安装Nginx,第一步安装pcre的时候获取安装包->解压缩->执行./configure
然后执行make的时候报错:make: *** No targets specified and no makefile found. stop
仔细看执行./configure的最后有报错:You need a C++ compiler for C++ support
于是执行yum install -y gcc gcc-c++,报错:There are no enabled repos
解决方法:
执行sudo apt-get install build-essential
重新执行./configure和make就成功啦
安装Nginx方法:http://www.cnblogs.com/skynet/p/4146083.html
ubuntu下nginx的启停等常用命令:http://www.codingyun.com/article/49.html