在安装NGINX的时候,出现错误,请前辈帮帮忙
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在安装NGINX的时候,出现错误,请前辈帮帮忙相关的知识,希望对你有一定的参考价值。
[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]#
bin/sh: line 2: ./configure: No such file or directory
你应该是安装的过程,进入了cd /pcre 目录。应到configure文件所在的目录下执行 参考技术B 你不用 --with-pcre的 你直接yum -y install pcre-devel 然后安装nginx的时候就
./configure --prefix=***** --user=nginx --group=nginx 如果你需要什么模块就自己添加就可以了 参考技术C ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --add-module=/root/liehu_install/ngx_cache_purge-2.0/ --with-pcre=/root/liehu_install/pcre-8.38 && make && make install
这个是我的nginx编译命令
/pcre 确定pcre目录是否正确 或者我给你一个我写的部署包NGINX+php的 参考技术D 编译器要升级,yum -y install gcc gcc-c++ autoconf automake make,执行这个命令就行了;楼下一群垃圾 第5个回答 2018-11-29 ./configure --prefix=/www/service/nginx --with-pcre=/pcre --with-zlib=/zlib
--with-pcre=DIR 是指 pcre 的源码目录不是安装目录
想在linux中安装ngnix,但是在安装pcre的时候总是报一下错误
configure: error: You need a C++ compiler for C++ support.但是我执行rpm -qa | grep gcc 都有版本号啊,以下是我执行语句的截图,求大神帮帮忙
参考技术A 配置Yum服务器,安装不会报错。 参考技术B 那你主机上g++安装了没?光有gcc是编译不了C++的,所以它依赖的应该是g++。追问我下了gcc-g++-4.5.2.tar.gz 但是我在./configure 操作时,就报
bash: ./configure: No such file or directory
所以一直进行不下去
应该是直接make的吧
以上是关于在安装NGINX的时候,出现错误,请前辈帮帮忙的主要内容,如果未能解决你的问题,请参考以下文章
Windows7 上装MSSQL 智能提示插件SQL Prompt 的时候出现如下的问题。 请大侠们帮忙分析一下原因。