Secondo on macOS Big Sur (11.0): 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.
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
- 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 Big Sur
cd ~/Downloads
curl -L http://newton2.fernuni-hagen.de/secondo/download/SDK_OSX_BIGSUR.tar.gz --output SDK_OSX_BIGSUR.tar.gz - unpack the downloaded file
tar -xzf SDK_OSX_BIGSUR.tar.gz - change the directory
cd SDK_Bigsur - run the installation script
./Install_On_Bigsur.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 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:
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.