Download the latest code.
Step 1: Install the X11 development files
sudo apt install libx11-dev
# To solve:
# Plugins/X11/x_gui.hpp:30:10: fatal error: 'X11/Xlib.h' file not found
sudo apt install libxext-dev
# To solve:
# /usr/bin/ld: cannot find -lXext
Step 2: Configure
CXX=g++ CC=gcc ./configure --disable-qt --prefix=$HOME/software
# If you failed to link pthread, use the LIBS environment variable
# LIBS=-lpthread CXX=g++ CC=gcc ./configure --disable-qt --prefix=$HOME/software
Step 3: Make and Install
make -j8
make install
To launch TeXmacs:
cd $HOME/software
bin/texmacs