首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache2.4.25因PCRE无法找到pcre.h而失败

Apache2.4.25因PCRE无法找到pcre.h而失败
EN

Unix & Linux用户
提问于 2017-02-03 04:33:29
回答 1查看 2K关注 0票数 0

我使用Solaris 11。pcre.h存在于/opt/app/pcre/lib中,但是make不能检测it.How,我可以在Make期间包括/opt/app/pcre/lib吗?

代码语言:javascript
复制
Apache 2.4.25 configure:
CC='/opt/app/solarisstudio12.4/bin/cc' CPP='/opt/app/solarisstudio12.4/bin/cc -E' ./configure --prefix=/opt/app/apache --with-pcre=/opt/app/pcre/bin/pcre2-config

Here is the log:
"util_pcre.c", line 49: cannot find include file: "pcre.h"
"util_pcre.c", line 104: undefined symbol: pcre_free
"util_pcre.c", line 104: function designator is not of function type
"util_pcre.c", line 105: cannot recover from previous errors
cc: acomp failed for util_pcre.c
gmake[2]: *** [util_pcre.lo] Error 1
gmake[2]: Leaving directory `/export/home/admin/Downloads/httpd-2.4.2/server'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/export/home/admin/Downloads/httpd-2.4.2/server'
gmake: *** [all-recursive] Error 1
EN

回答 1

Unix & Linux用户

发布于 2017-02-03 04:58:58

Apache2.4需要pcre,您正在使用pcre2 (即不兼容 )进行构建。

FWIW,Solaris pcre包应该能很好地为您工作,除非您是从零开始构建所有东西。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/342172

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档