Skip to content

Getting Started: Linux

Eric Sessoms edited this page Oct 8, 2021 · 7 revisions

Linux releases are available in binary and bootstrap forms.

Prerequisites

For a full system you will need to install X11:

sudo apt-get install xorg libglu1-mesa

It is also possible to install a minimal system without X11.

For bootstrap and source releases,

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

Binary installation

The binary install is fully self-contained, and can be used in-place.

cd $HOME
wget https://github.com/modula3/cm3/releases/download/d5.11.3/cm3-all-AMD64_LINUX-d5.11.3-Linux4.15.0-20211008.tar.gz
tar zxf cm3-all-AMD64_LINUX-d5.11.3-Linux4.15.0-20211008.tar.gz
ln -s cm3-all-AMD64_LINUX-d5.11.3-Linux4.15.0-20211008 cm3
PATH=$HOME/cm3/bin:$PATH

Bootstrap installation

Bootstrap builds a minimal compiler from an intermediate form, then builds a full system from source.

cd $HOME
mkdir -p cm3/bin
mkdir work
cd work
wget https://github.com/modula3/cm3/releases/download/d5.11.3/cm3-boot-AMD64_LINUX-d5.11.3-20211008.tgz
tar zxf cm3-boot-AMD64_LINUX-d5.11.3-20211008.tgz
cd cm3-boot-AMD64_LINUX-d5.11.3-20211008
make
cp cm3 $HOME/cm3/bin
PATH=$HOME/cm3/bin:$PATH
cd $HOME/work
wget https://github.com/modula3/cm3/archive/refs/tags/d5.11.3.tar.gz
tar zxf d5.11.3.tar.gz
cd d5.11.3/scripts/python
./boot2min.py
./do-cm3-all.py buildship  # or ./do-cm3-min.py buildship
Clone this wiki locally