+ -
当前位置:首页 → 问答吧 → centos5.5如果安装nginx求助

centos5.5如果安装nginx求助

时间:2010-08-28

来源:互联网

本人刚刚看了几天linux简单的可以操作,安装nginx就不行了,一上午也没有搞定,把问题提出来,大家看看!是什么原因,一般怎么解决!

帮忙看看!在线等!
wget http://nginx.org/download/nginx-0.8.49.tar.gz
tar -zxvf nginx-0.8.49.tar.gz
cd nginx-0.8.49
./configure --prefix=/usr/local/nginx

然后它就出现下面的一些信息

checking for OS
+ Linux 2.6.18-194.el5 i686
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.1.2 20080704 (Red Hat 4.1.2-4
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... not found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.

作者: zhang-jianbin   发布时间: 2010-08-28

我的centos 是昨天下午才安装的!可能默认的没有gcc 等编译器!其它的就不清楚了!

作者: zhang-jianbin   发布时间: 2010-08-28

yum install nginx

作者: aleng   发布时间: 2010-08-28