gpt4 book ai didi

c++ - XML-安全-C : configure: error: unable to find xerces header files

转载 作者:行者123 更新时间:2023-11-30 02:54:49 24 4
gpt4 key购买 nike

我正尝试按照本指南安装 Shibboleth 2 SP:
Building the Native Shibboleth 2 SP from Source on Linux

我成功配置并构建了 log4shib,然后我尝试构建 Xerces-C++ 3.1.1 但它给了我一个警告:WARNING: unrecognized options: --disable-netaccessor-libcurl我在不使用该选项的情况下解决了这个问题,因为在 3.1 中不可用,“--disable-netaccessor-libcurl”未在以下列表中列出:
http://xerces.apache.org/xerces-c/build-3.html

然后我构建它时没有收到任何错误或警告。
第三步是安装 XML-Security-C 但是当我运行时:

./configure --without-xalan --disable-static --prefix=/opt/shibboleth-sp


我得到这个错误:

configure: error: unable to find xerces header files


我试着导出路径:

export PATH=$HOME/opt/shibboleth-sp/bin:$PATH
export LD_LIBRARY_PATH=$HOME/opt/shibboleth-sp/lib:$LD_LIBRARY_PATH
export XERCESCROOT=$HOME/opt/shibboleth-sp:$XERCESCROOT

正如@Brian 所建议的那样:

export CPPFLAGS=$HOME/opt/shibboleth-sp/include
export CFLAGS=$HOME/opt/shibboleth-sp/include

并尝试重新安装,但不起作用。

在文件夹 /opt/shibboleth-sp 中,我有这个文件夹(在/shibboleth-sp 中,我没有名为 xercesc 的文件夹,但它在/包括):

/bin/
DOMCount (file)
SAX2Count (file)
SAX2Print (file)
etc..
/include/
log4shib
xercesc
dom
framework
internal
parsers
sax
etc..
/lib/
liblog4shib.so
libxerces-c.so
etc..
/share/
aclocal

enter image description here

我希望有人能帮助我。
感谢您的宝贵时间。

最佳答案

在您的设置中,给 ./configure 标志 --with-xerces=/opt/shibboleth-sp当正确安装 xerces 时,这应该会找到 xerces 头文件。

关于c++ - XML-安全-C : configure: error: unable to find xerces header files,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16823576/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com