Thanks to visit codestin.com
Credit goes to github.com

Skip to content
jestarray edited this page Jun 30, 2025 · 11 revisions

Install termux

Install termux on android for a shell

Compile from source (distribution) (recommended):

This method compiles faster as it uses prebuilt docs & bytecode. However if your platform bytecode is not supported (e.g maybe riscv), you should build from source (git) instead

# grab dependencies
pkg install wget make clang binutils fontconfig libcairo pango
# grab the latest stable version
wget "https://download.racket-lang.org/installers/8.17/racket-8.17-src-builtpkgs.tgz"
cd racket-8.17/src/
# prefix installation directory, and compile&install
configure --prefix=/data/data/com.termux/files/usr && make && make install
racket

Install with termux package.

Note that this installs BC minimal. See the termux build script. There's an unmerged PR for full BC. Because it installs BC minimal, those that want CS full should install by compiling from source instead until termux updates this package

$ pkg install unstable-repo
$ pkg install racket

Compile from source (git):

on your android device, install termux and run these commands:

$ pkg install git make clang binutils fontconfig libcairo pango 
$ git clone https://github.com/racket/racket --depth=1
$ cd racket
$ git checkout stable
$ time make in-place
$ ./racket/bin/racket

The binary will be located at racket/racket/bin/racket

running drracket

Download the termux-x11 apk(arm64-v8a is the most common android arch): https://github.com/termux/termux-x11/releases/tag/nightly

pkg install gtk
termux-x11 :1 -xstartup "dbus-launch --exit-with-session drracket"

Switch to the termux-x11 app and it should be running

Clone this wiki locally