我使用Solaris 11。pcre.h存在于/opt/app/pcre/lib中,但Make无法检测到它。如何在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
答案1
Apache 2.4 正在等待pcre
,并且您正在使用 进行构建pcre2
,即不兼容。
FWIW,Solarispcre
软件包应该非常适合您,除非您专门从头开始构建所有内容。