Nginx安装出现错误解决记录

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx安装出现错误解决记录相关的知识,希望对你有一定的参考价值。

一、添加第三方模块时出现 :make: Nothing to be done for `default‘.

解决方法:删除nginx下面的build文件,再执行make

二、编译出现

Undefined symbols for architecture x86_64:
"_pcre_free_study", referenced from:
_ngx_pcre_free_studies in ngx_regex.o
_ngx_http_lua_ngx_re_match in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_sub_helper in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch_cleanup in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch_gc in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch_iterator in ngx_http_lua_regex.o
...
ld: symbol(s) not found for architecture x86_64

解决方法:

./configure后面增加pcre路径,--with-cc-opt="-I/usr/local/Cellar/pcre/8.33/include" \ --with-ld-opt="-L/usr/local/Cellar/pcre/8.33/lib"

参考https://my.oschina.net/tonyyang/blog/170106

 

以上是关于Nginx安装出现错误解决记录的主要内容,如果未能解决你的问题,请参考以下文章

linux+nginx+phpfpm 访问出现Access denied错误解决方案

HTTP 499状态码 nginx下499错误及其解决方法

nginx http 400 错误的请求怎么解决

Nginx出现413 Request Entity Too Large错误解决方法

Nginx出现413 Request Entity Too Large错误解决方法

Nginx出现413 Request Entity Too Large错误解决方法