Compile Shibboleth SP from source on Linux (including dependencies)

Follow these steps if you want to compile the whole stack for Shibboleth SP from source.

The versions are specified in the following steps. You may want to change those to get more up-to-date versions of packages.

Install dependencies for CentOS6 and CentOS7

Some of these packages are available in the default CentOS repositories, the EPEL repositories and the Shibboleth repositories

yum -y install boost-devel zlib-devel openssl-devel libcurl-devel xml-security-c-devel gcc gcc-c++ make file wget httpd-devel unzip tar sed grep patch

Compile log4shib

wget -c -O log4shib-1.0.9.tar.gz tar xfz log4shib-1.0.9.tar.gz cd log4shib-1.0.9 ./configure --disable-static --disable-doxygen --prefix=/opt/shibboleth-sp make clean make -j 4 make install

Compile xmltooling

wget -c -O unzip cd xmltooling-1.6.4 PKG_CONFIG_PATH=/opt/shibboleth-sp/lib/pkgconfig ./configure --prefix=/opt/shibboleth-sp -C make clean make -j 4 make install

Compile opensaml

Compile shibboleth-sp

You may want to add some configuration flags here to eg. build the mod_shib for apache