-
Notifications
You must be signed in to change notification settings - Fork 25
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.
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
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
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
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
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
- Try the tutorial.
- There is a directory of examples included in the download. Also available online.
- Review the CM3 documentation, in particular:
- interface documentation for the included libraries, and
- historical Modula-3 books and papers.
- Visit the Modula-3 homepage.