Skip to content

Getting Started: Linux

Eric Sessoms edited this page Jan 3, 2022 · 7 revisions

Download the latest release. The AMD64_LINUX installer works for any 64-bit little-endian Unix.

See Getting Started for context and background information.

Prerequisites

The installer requires Python 3, CMake, and a C++ compiler.

# Arch
sudo pacman -S base-devel cmake

# Debian
sudo apt-get install build-essential cmake python3

# Fedora
sudo dnf group install "Development Libraries" "Development Tools"
sudo dnf install cmake

# Gentoo
sudo emerge cmake

Optional prerequisites

To build a full system including the UI libraries, you must install X11 and OpenGL.

# Arch
sudo pacman -S glu mesa xorg-server-devel

# Debian
sudo apt-get install libglu1-mesa-dev xorg-dev

# Fedora
sudo dnf install libXaw-devel libXft-devel mesa-libGLU-devel

# Gentoo
sudo emerge mesa

AARCH64

The installer sometimes fails to correctly identify AARCH64 systems. If this is causing you problems, try adding --target ARM64_LINUX to the install command. For more information see https://github.com/modula3/cm3/wiki/Getting-Started#targets

Headless install

The default install doesn't try to build the UI libraries.

curl -LO https://github.com/modula3/cm3/releases/download/d5.11.4/cm3-dist-AMD64_LINUX-d5.11.4.tar.xz
tar xf cm3-dist-AMD64_LINUX-d5.11.4.tar.xz
mkdir build
cd build
../cm3-dist-AMD64_LINUX-d5.11.4/scripts/concierge.py install --prefix $HOME/cm3
PATH=$HOME/cm3/bin:$PATH

Full install

Specify "all" to build the UI libraries.

curl -LO https://github.com/modula3/cm3/releases/download/d5.11.4/cm3-dist-AMD64_LINUX-d5.11.4.tar.xz
tar xf cm3-dist-AMD64_LINUX-d5.11.4.tar.xz
mkdir build
cd build
../cm3-dist-AMD64_LINUX-d5.11.4/scripts/concierge.py install --prefix $HOME/cm3 all
PATH=$HOME/cm3/bin:$PATH

Next Steps