How can I install GNOME LaTeX on Ubuntu 21.10?

Solution 1:

Installation of GNOME LaTeX maybe done while combining ArchLinux PKGBUILD with knowledge of Ubuntu.

At first we need to enable Source Code repositories (deb-src) from Software and Updates (software-properties-gtk) and then update package lists and install all necessary build-dependencies for current LaTeXila version and its newer variant:

sudo apt-get update
# for current
sudo apt-get build-dep latexila 
# for the newest
sudo apt-get install libgtksourceview-4-dev libamtk-5-dev libtepl-5-dev libdconf-dev valac gobject-introspection gtk-doc-tools

Then download latest tarball by using commands below:

cd ~/Downloads
wget -c https://download.gnome.org/sources/gnome-latex/3.38/gnome-latex-3.38.0.tar.xz
tar -xf gnome-latex-3.38.0.tar.xz
cd gnome-latex-3.38.0

./configure --prefix=/usr/local --enable-gtk-doc
make -j$(nproc)

Then finally create local deb-package for the GNOME LaTeX application using CheckInstall:

sudo apt-get install checkinstall

sudo checkinstall
# for "Should I create a default set of package docs?  [y]:" press <y>, <Enter>
# for description enter "GNOME LaTeX" and then hit <Enter> then <Ctrl>+<D>
# for "This package will be built according to these values:" hit <Enter>
# hit <Enter> until deb-package created and installed

and enjoy

GNOME LaTeX 3.38 on Ubuntu MATE 21.10