MathLibre-c is a project for building containers for mathematical software environments.
One of the following environments is required:
- Linux + X11 + git + podman
- Linux + Wayland + XWayland + git + podman
- Windows + WSL2 + git + podman
- macOS + Homebrew + qemu + Xquartz + git + podman
Install packages
apt install git podmanor
dnf install git podmanetc.
- How to install Linux on Windows with WSL/Microsoft Run the following PowerShell:
wsl --install- After starting WSL2, follow the steps as for Linux
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- Install packages
brew install git podman- The image is for amd64 noso ARM-based CPUs such as M-series Macs, qemu is required. (Not required on Intel Macs.)
brew install qemu- Install X
brew install --cask xquartz- On macOS, you need to set up a Podman machine (a Linux VM for macOS) once before using podman:
podman machine init
podman machine start- Launch XQuartz
open -a xquartz- When using X, you need to allow connections with xhost.
xhost +localhostThe main included software is:
- openxm (Risa/Asir)
- vim-tiny
After running make run, the OpenXM prompt appears:
OpenXM/Risa/Asir-Contrib $Revision$ (20250117), Copyright 2000-2025, OpenXM.org committers
helph(); [html help], ox_help(0); ox_help("keyword"); ox_grep("keyword");
for help messages (unix version only).
http://www.math.kobe-u.ac.jp/OpenXM/Current/doc/index-doc.html
[2113]
You can then enter Risa/Asir commands. To exit the container, use the Risa/Asir exit command:
quit;
After running make shell, the bash prompt appears:
user@mathlibre:/work$
To start Risa/Asir:
openxm fep asirTo exit Risa/Asir:
quit;
To exit the shell:
exitmake pullFor adding packages, edit Containerfile and rebuild it.
make build- The container name has been changed to openxm.
- Use
make runif you want to work with an editor on the host side. - Use
make shellif you want to use the container’s shell. - The image size is about 860 MB when unpacked.
- Currently, the working directory work is the directory where
make runormake shellis executed. - You cannot become root inside the container.
- To add packages, edit the Containerfile and run
make build.