Secondo on Mac-OS Mojave: 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.
Step 1: Installing xcode command line tools
open a terminal
enter the following line: gcc --version
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
open a terminal or use the one of the xcode installation
enter the following line javac -version
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.
download the db...tar.gz file of the latest Berkeley-DB version
this requires an Oracle account
if you don't have such account, just create it. it's for free
open a terminal and navigate to the folder containing the db....tar.gz archive
enter the following commands
(for other versions of the Berkeley-DB, just change the names in the first
two commands): tar -xzf db-18.1.25.tar.gz cd db-18.1.25 cd build_unix ../dist/configure --prefix=$HOME/BDB --enable-cxx make mkdir $HOME/BDB make install
click on the MacOSX version to download the dmg file
open Finder, go to Downloads and double click on this dmg file
some time later, a SWI-Prolog icon is shown together with the
application folder
drag the SWI-Prolog icon into the application folder
Step 5: Install further tools and set environments variables
open a terminal and navigate into a directory of your choice
download the required tools for Mojave wget https://github.com/secondo-database/secondo-database.github.io/raw/main/files/Installation/Mac/SDK_OSX_MOJAVE.tar.gz
unpack the downloaded file tar -xzf SDK_OSX_MOJAVE.tar.gz
change the directory cd SDK_Mojave
run the installation script ./Install_On_Mojave
if applicable change your .profile file according to the instructions printed out
during the installation process
Step 6: Compiling Secondo
open a terminal and navigate into the Secondo directory cd $HOME/secondo