nginx安装遇到问题,急求帮助

2025-05-18 17:50:24
推荐回答(2个)
回答1:

/bin/sh: line 0: cd: n3/openssl-1.0.0d: No such file or directory

这条报了找不到文件或者目录。还有你这个openssl版本有点问题 现在主流的都是0.9.8 1.0.0 还没用过不知道是否稳定哎

回答2:

[root@wm nginx-1.0.5]# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=n3/openssl-1.0.0d --with-zlib=/n3/zlib-1.2.7
checking for OS
+ Linux 2.6.18-53.el5 i686
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.1.2 20070626 (Red Hat 4.1.2-14)
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 PCRE library ... found
creating objs/Makefile
Configuration summary
+ using system PCRE library
+ using OpenSSL library: n3/openssl-1.0.0d
+ md5: using OpenSSL library
+ sha1: using OpenSSL library
+ using zlib library: /n3/zlib-1.2.7
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/sbin/nginx"
nginx configuration prefix: "/usr/local/nginx/conf"
nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/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@wm nginx-1.0.5]# make
make -f objs/Makefile
make[1]: Entering directory `/n3/nginx-1.0.5'
cd n3/openssl-1.0.0d \
&& make clean \
&& ./config --prefix=/n3/nginx-1.0.5/n3/openssl-1.0.0d/.openssl no-shared no-threads \
&& make \
&& make install LIBDIR=lib
/bin/sh: line 0: cd: n3/openssl-1.0.0d: No such file or directory
make[1]: *** [n3/openssl-1.0.0d/.openssl/include/openssl/ssl.h] Error 1
make[1]: Leaving directory `/n3/nginx-1.0.5'
make: *** [build] Error 2