Hello!
On Wed, May 21, 2014 at 9:27 PM, 南天紫云 wrote:
> 我在编译OpenResty时出现错误,在网上搜索答案没有结果,尝试自己解决未果,遂冒昧打扰您。以下是问题描述:
>
> ./configure --with-luajit --with-pcre=/usr/local
> --with-openssl=/usr/local/ssl --prefix=/tmp/openresty 没有问题,
> make时出现如下错误:
>
> make[2]: Entering directory
> `/user/ngx_openresty-1.5.12.1/build/nginx-1.5.12'
> cd /usr/local \
> && 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[2]: *** [/usr/local/Makefile] Error 127
>
你把 --with-pcre=DIR 和 --with-openssl=DIR 选项给用错了。它们需要的路径是分别指向 PCRE 和
OpenSSL 的*源码*树的,而不是安装树。你可以在 ./configure --help 的帮助信息里看到对这两个选项的解释:
$ ./configure --help|grep -E 'with-(pcre|openssl)='
--with-pcre=DIR set path to PCRE library sources
--with-openssl=DIR set path to OpenSSL library sources
同时抄送给 openresty 中文邮件列表:https://groups.google.com/group/openresty
建议你也加入此列表并在那里讨论这样的问题,而不要直接给我发邮件。谢谢合作!
Best regards,
-agentzh