1

我正在尝试按照本指南安装 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的文件夹,但它在 /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

在此处输入图像描述

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

4

2 回答 2

2

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

于 2013-05-31T09:48:35.887 回答
1

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

export CFLAGS我的$PREFIX/include 也有一组

于 2013-05-30T05:02:41.423 回答