我使用Solaris 11。pcre.h存在于/opt/app/pcre/lib中,但是make不能检测it.How,我可以在Make期间包括/opt/app/pcre/lib吗?
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发布于 2017-02-03 04:58:58
Apache2.4需要pcre,您正在使用pcre2 (即不兼容 )进行构建。
FWIW,Solaris pcre包应该能很好地为您工作,除非您是从零开始构建所有东西。
https://unix.stackexchange.com/questions/342172
复制相似问题