[main]Notes on TeXmacs

# Compile TeXmacs on the Raspberry Pi

Unfortunately, there is no prepackaged TeXmacs for RaspberryPi OS, because of its ARM chipset. Likewise there are no precompiled binaries, but it is not hard to built it yourself.

The following is a step by step guide to install the required tools to compile TeXmacs yourself from source and install it. Theis guide was written for the latest version of Raspberry Pi OS from December 2020. It will work on version 3, 4 and 400 of the RaspberryPi.

Start by opening a terminal and installing the required components to compile by entering:

sudo apt install build-essential libfreetype-dev libltdl-dev \
libgmp-dev qt4-default qt4-config

mkdir texmacs-builddir

Change the working directory to it:

cd texmacs-builddir

TeXmacs depends on a Guile, so we need to build guile first. For this enter the following commands. Each step might take some time depending on your internet connection and the exact model of the Raspberry Pi.

wget https://ftp.gnu.org/gnu/guile/guile-1.8.8.tar.gz
tar xzf guile-1.8.8.tar.gz
cd guile-1.8.8
./configure --disable-error-on-warning
make -j 4
sudo make install

Now, we can go on to get and compile TeXmacs

cd ..
sudo make install
texmacs