XML-Security-C:configure:error:无法找到xerces头文件

时间:2013-05-29 20:51:42

标签: c++ xerces-c shibboleth

我正在尝试按照本指南安装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

然后我把它建成了whitout得到任何错误o警告 第三步是安装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 的文件夹,但这里面是/ include):

/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

我希望有人可以帮助我。
谢谢你的时间。

2 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:1)

export CPPFLAGS=$HOME/opt/shibboleth-sp/include,它应该能够找到标题。

我有export CFLAGS设置为我的$ PREFIX / include

相关问题