nginx编译报错/bin/sh: line 2: ./configure: No such file or directory

编译nginx的时候,指定了相关连模块的编译目录:

./configure –user=www –group=www –prefix=/usr/local/nginx –with-http_ssl_module –with-http_sub_module –with-http_gzip_static_module –with-http_stub_status_module  –add-module=/usr/local/src/nginx_upstream_jvm_route/   –with-http_realip_module –with-pcre=/usr/local/pcre

但是编译make过程报如下错误:

[root@web1 nginx-0.8.54]# make 
make -f objs/Makefile
make[1]: Entering directory `/usr/local/src/nginx-0.8.54′
cd /usr/local/pcre /
&& if [ -f Makefile ]; then make distclean; fi /
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " /
./configure –disable-shared
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [/usr/local/pcre/Makefile] Error 127
make[1]: Leaving directory `/usr/local/src/nginx-0.8.54′
make: *** [build] Error 2

请问这是为啥,为什么报这个,明明我/usr/local/pcre 是我编译了的啊?

已邀请:

chris - 喜欢自由散漫的我

这个问题很明显,找不到 configureMakefile ,为啥找这2个文件,编译后的依赖程序包肯定没有的,这是因为nginx编译依赖的 pcre 、openssl 、zlib等,你要指定的是他们的源码目录,而不是编译后的目录,你重新指定为源码目录吧,我也被坑过。

要回复问题请先登录注册