在安装NGINX的时候,出现错误,请前辈帮帮忙 10
[root@localhostnginx-1.8.0]#./configure--prefix=/www/service/nginx--with-pcre=/pcre--...
[root@localhost nginx-1.8.0]# ./configure --prefix=/www/service/nginx --with-pcre=/pcre --with-zlib=/zlib
checking for OS
+ Linux 2.6.32-431.20.5.el6.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
checking for gcc -pipe switch ... found
....more line...
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for md5 in system md library ... not found
checking for md5 in system md5 library ... not found
checking for md5 in system OpenSSL crypto library ... not found
checking for sha1 in system md library ... not found
checking for sha1 in system OpenSSL crypto library ... not found
creating objs/Makefile
Configuration summary
+ using PCRE library: /pcre
+ OpenSSL library is not used
+ using builtin md5 code
+ sha1 library is not found
+ using zlib library: /zlib
nginx path prefix: "/www/service/nginx"
nginx binary file: "/www/service/nginx/sbin/nginx"
nginx configuration prefix: "/www/service/nginx/conf"
nginx configuration file: "/www/service/nginx/conf/nginx.conf"
nginx pid file: "/www/service/nginx/logs/nginx.pid"
nginx error log file: "/www/service/nginx/logs/error.log"
nginx http access log file: "/www/service/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
[root@localhost nginx-1.8.0]# make
make -f objs/Makefile
make[1]: Entering directory `/download/nginx-1.8.0'
cd /pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/pcre/Makefile] Error 127
make[1]: Leaving directory `/download/nginx-1.8.0'
make: *** [build] Error 2
[root@localhost nginx-1.8.0]# 展开
checking for OS
+ Linux 2.6.32-431.20.5.el6.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
checking for gcc -pipe switch ... found
....more line...
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
checking for md5 in system md library ... not found
checking for md5 in system md5 library ... not found
checking for md5 in system OpenSSL crypto library ... not found
checking for sha1 in system md library ... not found
checking for sha1 in system OpenSSL crypto library ... not found
creating objs/Makefile
Configuration summary
+ using PCRE library: /pcre
+ OpenSSL library is not used
+ using builtin md5 code
+ sha1 library is not found
+ using zlib library: /zlib
nginx path prefix: "/www/service/nginx"
nginx binary file: "/www/service/nginx/sbin/nginx"
nginx configuration prefix: "/www/service/nginx/conf"
nginx configuration file: "/www/service/nginx/conf/nginx.conf"
nginx pid file: "/www/service/nginx/logs/nginx.pid"
nginx error log file: "/www/service/nginx/logs/error.log"
nginx http access log file: "/www/service/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
[root@localhost nginx-1.8.0]# make
make -f objs/Makefile
make[1]: Entering directory `/download/nginx-1.8.0'
cd /pcre \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/pcre/Makefile] Error 127
make[1]: Leaving directory `/download/nginx-1.8.0'
make: *** [build] Error 2
[root@localhost nginx-1.8.0]# 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏10(财富值+成长值)
8个回答
展开全部
yum -y install gcc
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
可以我知道你安装免安装版本的试试看,我的成功了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这个是编译安装的有问题哦, 看下wo 的网名吧, 一定可以解决的哦!!
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询