Note |
---|
For notes on Installation see this topic |
Building the Native SP from Source on macOS
...
The 3.x native SP has been built successfully using the following combinations:
OS X 10.4 with gcc4 (PPC, 32-bit)OS X 10.5 with gcc4 (PPC, 32-bit)OS X 10.5 with gcc4 (Intel, 32-bit)OS X 10.6 with gcc4 (Intel, 64-bit) - see below
Set Up the Build Environment
Set
DYLD_LIBRARY_PATH
to the eventual lib path into which you'll be installing the packages you're building (/opt/shibboleth-sp/lib
)Set
MACOSX_DEPLOYMENT_TARGET
to your OS X version (e.g.10.4
or10.5
)See DYLD_LIBRARY_PATH note below for additional setup option before proceeding.
Building Shibboleth
As per this topic Shibboleth requires multiple dependencies to be available or built.
The Boost headers. But you don't need to actually build or install the full Boost library set.
cxxtest (optional, for unit test support)
Prior to building Xerces-C for macOx you will also need ICU
If you have pkg-config installed, you may need to append --with-openssl=/usr
to the XMLTooling-C and OpenSAML-C configure commands (or remove pkg-config from your path).
...
This is the option I prefer because everything will just work all the time when you are done compiling. When setting up your build environment:
Set LDFLAGS="-Wl,-rpath,(your_shib-sp_install_dir)/lib"
Add
--enable-rpath
as an option to the ICU configure line.
Option 2: Set DYLD_LIBRARY_PATH for launchctl
...
Code Block |
---|
<key>EnvironmentVariables</key> <dict> <key>DYLD_LIBRARY_PATH</key> <string>/opt/shibboleth-sp/lib</string> </dict> |
64 bit builds
The following is offerred as the starting point for a build