Secondo on macOS Monterey (12): Installation Instructions for ARM-CPUs (M1)
Please Note
Warning: The M1 Port of SECONDO is current under development. Some features might be unstable.
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
- open a terminal
- enter the following line:
clang --version
Step 2: Install a M1 native Java SDK
- For building SECONDO on a M1 CPU, a native Java SDK needs to be installed.
- SECONDO is tested with the Azul 13.0 SDK for ARM 64-bit (DMG installer)
- Verify that this SDK is used by calling /usr/libexec/java_home
Step 3: Install the Required Tools
- Install the Homebrew package manager for OS X.
- brew install jpeg swi-prolog berkeley-db
- Rebuild swi-prolog with Java Support
brew edit swi-prolog
Set -DSWIPL_PACKAGES_JAVA=ON
brew reinstall swi-prolog -s -v
Step 4: Install further tools and set environments variables
- open a terminal and navigate into a directory of your choice
- download the required tools for Monterey
cd ~/Downloads
curl -L http://newton2.fernuni-hagen.de/secondo/download/SDK_OSX_MONTEREY.tar.gz --output SDK_OSX_MONTEREY.tar.gz - unpack the downloaded file
tar -xzf SDK_OSX_MONTEREY.tar.gz - change the directory
cd SDK_Bigsur - run the installation script
./Install_On_Monterey.sh - if applicable change your .profile file according to the instructions printed out during the installation process
Step 5: Compiling Secondo
- open a terminal and navigate into the Secondo directory
cd $HOME/secondo - compile Secondo
make - Start Secondo according to the Secondo's User Manual
Upgrade
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:
That is all, your Secondo SDK is successfully upgraded.
mv ${SECONDO_SDK} ${SECONDO_SDK}.old- Repeat the installation processs
-
In your Secondo source directory please execute:
make clean
make
That is all, your Secondo SDK is successfully upgraded.