Installation of the server
Installation of the server on Ubuntu
- Install linuxbrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Run
brew install open-geocomputing/brew/g2s - Use the
g2scommand
Installation of the server on macOS
- Install homebrew if not already done
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Run
brew install open-geocomputing/brew/g2s - Use the
g2scommand
Installation of the server on Windows 10
- Check that the latest updates of Windows are installed
- Install WSL following these instructions, and select a Linux distribution (we recommend choosing Ubuntu for beginners).
- Install linuxbrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Run
brew install open-geocomputing/brew/g2s - Use the
g2scommand
Installation of the server manually from source on Ubuntu
Automatic with GCC on Ubuntu
- First clone the code from this GitHub:
git clone https://github.com/GAIA-UNIL/G2S.git - Then run
build/c++-build/install_needs_W_VM.sh
Manual (including Intel C++ Compiler)
- First clone the code from this GitHub:
git clone https://github.com/GAIA-UNIL/G2S.git - Basics for compiling are needed (e.g. on Ubuntu: build-essential).
- The following packages are required: ZMQ, JsonnCpp and zlib for G2S; fftw3 for QS and NDS.
- To install them on Ubuntu:
sudo apt install build-essential libzmq3-dev libjsoncpp-dev zlib1g-dev libfftw3-dev libcurl4-openssl-dev -y(libcurl4-openssl-dev is optional). - The C++ extension for ZMQ is required too, and can be installed via:
wget "https://raw.githubusercontent.com/zeromq/cppzmq/master/zmq.hpp" -O ./include/zmq.hpp - Go to the build subfolder.
Optional, recommended for QS and NDS speed: run
make fftw-simdfirst. It builds a SIMD-optimized single-precision FFTW (NEON on ARM, SSE2/AVX/AVX2 on x86-64) that the followingmakelinks in place of the system FFTW. - Run:
make -j, if the Intel C++ compiler is installed, the adapted version will be compiled too. The Intel compiler can be downloaded freely in many cases: here. To manually select between GCC or Intel compiler usemake c++ -jormake intel -j, respectively. - Run:
make install
Optional: pyDev (Python prototyping)
The pyDev algorithm, which runs simulation algorithms written in Python, is an optional component. Install Python 3.14 or later with numpy (python3.14t recommended), then in the build folder run make pydev before make install.
Installation of the server manually from source on macOS
using Homebrew (now recommended)
- First clone the code from this GitHub:
git clone https://github.com/GAIA-UNIL/G2S.git - Install the package manager Homebrew (if not already done)
- The following packages are required: ZMQ, JsonnCpp and zlib for G2S. fftw3 for QS and NDS.
- To install them with Homebrew:
brew install fftw zmq jsoncpp cppzmq curlNote: curl is optional. - Go to the
buildsubfolder. Optional, recommended for QS and NDS speed: runmake fftw-simdfirst. It builds a SIMD-optimized single-precision FFTW (NEON on ARM, SSE2/AVX/AVX2 on x86-64) that the followingmakelinks in place of the system FFTW. Homebrew’s FFTW has no NEON kernels on Apple silicon, so this makes QS about 1.5× faster there. - Run:
make -j, if the Intel C++ compiler is installed the adapted version will be compiled too. The Intel compiler can be downloaded freely in many cases: here. Obviously, Intel compiler is only for Intel CPUs 😁. To manually select between GCC or Intel compiler usemake c++ -jormake intel -j, respectively. - Run:
make install
Optional: pyDev (Python prototyping)
The pyDev algorithm, which runs simulation algorithms written in Python, is an optional component that is not included in the Homebrew package. To add it to a source installation, install Python 3.14 or later with numpy (python3.14t recommended), then in the build folder run make pydev before make install.
using MacPort (now deprecated)
- First clone the code from this GitHub:
git clone https://github.com/GAIA-UNIL/G2S.git - Install the package manager MacPort (if not already done)
- The following packages are required: ZMQ, JsonnCpp and zlib for G2S. fftw3 for QS and NDS.
- To install them with macPort:
sudo port install zmq-devel jsoncpp-devel zlib cppzmq-devel fftw-3 fftw-3-single curlNote: curl is optional. - Go to the
buildsubfolder. - Run:
make -j, if the Intel C++ compiler is installed the adapted version will be compiled too. The Intel compiler can be downloaded freely in many cases: here. To manually select between GCC or Intel compiler usemake c++ -jormake intel -j, respectively. - Run:
make install
Installation of the server manually from source on Windows 10
- Check that the latest updates of Windows are installed
- Install WSL following these instructions, and select a Linux distribution (we recommend choosing Ubuntu for beginners).
- Clone the code from this GitHub repository: https://github.com/GAIA-UNIL/G2S.git (or download and unzip the zip-file on the top right of this page).
- In Windows, go to the directory
build/c++-buildand run/double-clickinstall.bat.