Create a folder that will contain the source code and dependend source libraries. For the purposes of this guide the target folder will be '/opt/shibboleth/src'
Execute the following commandsexport MYBUILD=/opt/shibboleth/src cd $MYBUILD wget http://shibboleth.internet2.edu/downloads/log4shib/latest/log4shib-1.0.4... wget http://mirror.switch.ch/mirror/apache/dist/xerces/c/2/sources/xerces-c-s... wget http://santuario.apache.org/dist/c-library/xml-security-c-1.5.1.tar.gz wget http://shibboleth.internet2.edu/downloads/opensaml/cpp/latest/xmltooling... wget http://shibboleth.internet2.edu/downloads/opensaml/cpp/latest/opensaml-2... wget http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/latest/shibbo... for f in $MYBUILD/*.tar.gz; do tar -zxvf $f -C $MYBUILD; done
Define the required environment variables below;
export SHIB_HOME=/opt/shibboleth/sp/ export XERCESCROOT=$MYBUILD/xerces-c-src_2_8_0/
Create the target directory:
mkdir $SHIB_HOME
Build Log4Shib:
cd $MYBUILD/log4shib-1.0.4/ ./configure --disable-static --disable-doxygen --prefix=$SHIB_HOME make make install
Build XercesC:
cd $MYBUILD/xerces-c-src_2_8_0/src/xercesc/ ./runConfigure -p linux -r pthread -P $SHIB_HOME make make install
Build XML-Security:
cd $MYBUILD/xml-security-c-1.5.1 ./configure --without-xalan --prefix=$SHIB_HOME make make install
Build XML-Tooling:
cd $MYBUILD/xmltooling-1.3.3/ ./configure --with-log4shib=$SHIB_HOME --prefix=$SHIB_HOME -C make make install
Build OpenSAML:
cd $MYBUILD/opensaml-2.3/ ./configure --prefix=$SHIB_HOME --with-log4shib=$SHIB_HOME -C make make install
Build Shibboleth Service Provider:
cd $MYBUILD/shibboleth-2.3/ ./configure --with-saml=$SHIB_HOME --enable-apache-22 --with-log4shib=$SHIB_HOME --prefix=$SHIB_HOME -C make make installOnce the build has been successful you will find the Apache-Shibboleth module (mod_shib_2x.so -where x depends on the version of Shibboleth 2 you downloaded) is in the MYBUILD/lib/shibboleth directory. The Shibboleth daemon (shibd) will be in the MYBUILD directory. Create a symbolic link between the directory MYBUILD/etc/shibboleth and /etc/shibboleth You may proceed to follow the Shibboleth 2 Service Provider Installation Guide for Linux (skip the first section titled 'Shibboleth Install'), and add the following directive to your Apache configuration if your version of Apache doesn't use a2enmod
LoadModule mod_shib /opt/shibboleth/lib/mod_shib_2X.so

