Skip to content

knxm/mathlibre-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MathLibre-c

(Japanese)

MathLibre-c is a project for building containers for mathematical software environments.

Requirements

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

Linux

Install packages

apt install git podman

or

dnf install git podman

etc.

Windows

  1. How to install Linux on Windows with WSL/Microsoft Run the following PowerShell:
wsl --install
  1. After starting WSL2, follow the steps as for Linux

macOS

  1. Install Homebrew/Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install packages
brew install git podman
  1. 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
  1. Install X
brew install --cask xquartz
  1. 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
  1. Launch XQuartz
open -a xquartz
  1. When using X, you need to allow connections with xhost.
xhost +localhost

Container contents

The main included software is:

  • openxm (Risa/Asir)
  • vim-tiny

Use Risa/Asir

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;

Use the shell

After running make shell, the bash prompt appears:

user@mathlibre:/work$ 

To start Risa/Asir:

openxm fep asir

To exit Risa/Asir:

quit;

To exit the shell:

exit

Get the container image

make pull

Build the container image

For adding packages, edit Containerfile and rebuild it.

make build

Notes

  • The container name has been changed to openxm.
  • Use make run if you want to work with an editor on the host side.
  • Use make shell if 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 run or make shell is executed.
  • You cannot become root inside the container.
  • To add packages, edit the Containerfile and run make build.

Reference

About

MathLibre podman container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published