Secondo on macOS Monterey (12): Installation Instructions

To be able to compile the Secondo database system, some tools and libraries must be installed. This document describes how to install all required tools.

Fresh Installation

Step 1: Installing xcode command line tools

If the xcode tools are already present, the gcc's version is printed out. Otherwise a window pops up. Just click on install.

Step 2: Installing Java-SDK

If the Java SDK is already installed, the java compiler's version is displayed. Otherwise a browser is opened showing Oracle's Java download page. Accept the licence, download the latest SDK for Max-OS and install it.

Step 3: Installing the Berkeley DB

Secondo uses the Berkeley-DB as a storage manager. Thus, an installation of this tool is required. Because of licensing issues, this library cannot be distributed together with Secondo.

Step 4: Installing SWI-Prolog

Step 5: Install the Required Tools

Note: Some algebras of SECONDO are using further dependencies. We recommend installing the Homebrew package manager for OS X. Using the package manager, these dependencies can be easily installed.

Step 6: Install further tools and set environments variables

Step 7: Compiling Secondo


Please ensure that you have installed at least Xcode 13 and the Xcode 13 command line tools are active (see Xcode → Preferences → Locations → Command Line Tools).
To upgrade from a previous OS X / SDK version, please execute:

Step 5 from the installation processs

If you have upgraded your Prolog Installation, please execute the following commands:

JPL=$(find /Applications -name "libjpl.dylib")
PL=$(find /Applications -name "libswipl.dylib")
SWIPLDIR=$(dirname $PL)
install_name_tool -add_rpath $SWIPLDIR $JPL

In your Secondo source directory please execute:

make clean

That is all, your Secondo SDK is successfully upgraded.
Last Changed: 2021-11-01 (JNI)