Secondo on macOS Big Sur (11.0): 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.

Prerequisite

Since macOS 10.15, macOS uses 'zsh' as the default shell. SECONDO uses some functions that are only available in the 'BASH' shell. Using zsh with Secondo can lead to some problems. Therefore, we recommend using the BASH as the default shell for the user that should work with SECONDO. The default shell can be set via command line by calling 'chsh -s /bin/bash' and re-login. As an alternative, the shell can be set in the system preferences under 'Users and Groups' → press the Ctrl key and click your user name → select 'Advanced Options' → 'Login Shell' → '/bin/bash' and re-login.

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 further tools and set environments variables

Step 6: Compiling Secondo

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 (e.g., brew install gmp or brew install libjpeg).

Upgrade

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

mv ${SECONDO_SDK} ${SECONDO_SDK}.old
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
make

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