错误:src/core/ngx_regex.c:307: undefined reference to `pcre_free_study',解决
2016-12-20 13:01
435 查看
linux版本:CentOS 6.X
如题,在编译nginx 1.2.x遇到如下错误的解决方法
错误:src/core/ngx_regex.c:307: undefined reference to `pcre_free_study'
解决方法:
# ./configure \
--user=www \
--group=www \
--prefix=/usr/local/server/nginx \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_sub_module \
--with-pcre=../pcre-8.32 --with-pcre-jit
可以发现除了一般的指定用户,用户组,安装目录,模块之外还增加了
--with-pcre=../pcre-8.31 --with-pcre-jit
而且pcre就在nginx的上一层目录版本为8.31,如果你的路径不是这个要注意更改,添加次参数之后即可解决如题的问题。
然后重新编译安装
# make clean
# make
# make install
如题,在编译nginx 1.2.x遇到如下错误的解决方法
错误:src/core/ngx_regex.c:307: undefined reference to `pcre_free_study'
解决方法:
# ./configure \
--user=www \
--group=www \
--prefix=/usr/local/server/nginx \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_sub_module \
--with-pcre=../pcre-8.32 --with-pcre-jit
可以发现除了一般的指定用户,用户组,安装目录,模块之外还增加了
--with-pcre=../pcre-8.31 --with-pcre-jit
而且pcre就在nginx的上一层目录版本为8.31,如果你的路径不是这个要注意更改,添加次参数之后即可解决如题的问题。
然后重新编译安装
# make clean
# make
# make install
相关文章推荐
- Linux下安装Coreseek提示“/src/sphinx.cpp:22292: undefined reference to”错误的解决办法
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- QT for linux 的错误 undefined reference to 'FcFreeTypeQueryFace' 的解决方法
- CentOS安装openresty或者verynginx时:undefined reference to `pcre_free_study'
- 总结:移植(porting),解决undefined reference to错误及unresovled错误
- FreeBSD下编译Fontconfig时提示src/.libs/libfontconfig.so: undefined reference to `xmlCreatePushParserCtxt' 的解决办法
- glib ./.libs/libgio-2.0.so: undefined reference to `inflateGetHeader'错误解决
- error:undefined reference to `coloured_LED_init'及相关错误时的解决办法!
- 移植(porting),解决undefined reference to错误及unresovled错误
- 解决undefined reference to `__aeabi_uidivmod'和undefined reference to `__aeabi_uidiv'错误
- QT多线程中undefined reference to 'pthread_create'错误的解决
- undefined reference to错误的解决方法
- QT中的 undefined reference to vtable for "xxx::xxx" 错误解决
- QT中的 undefined reference to vtable for "xxx::xxx" 错误解决
- 使用Sqlite出现undefined reference to `sqlite3_open'错误的解决
- undefined reference to `clock_gettime' 链接错误问题解决
- PHP 5.3.10 编译安装时出现 undefined reference to `libiconv' 错误的解决方法
- 编译静态expect现undefined reference to `openpty' 错误解决方法
- Dev C++中的错误的解决[Linker error] undefined reference to `__dyn_tls_init_callback'
- 解决undefined reference to `__aeabi_uidivmod'、 `__aeabi_uidiv'错误