Install JHBuild on Debian / Ubuntu

2. Install JHBuild on Debian Bullseye 11 / Sid and Ubuntu 21.04 / 21.10

You will need two consoles another root and another normal user. Whole JHBuild will run under normal user account, but you will need lot of dependencies to get everything up and running. Check step title is command meant to run as [normal user] or [root].

2.1 Check python3 version

Should be >= 3.5

python3 --version

2.2 Install git and other build tools [root]

apt install git make autoconf automake gettext yelp-tools autopoint gcc pkg-config

2.3 Get latest JHBuild [normal user]

cd ~

git clone https://gitlab.gnome.org/GNOME/jhbuild.git

2.4 Build JHBuild [normal user]

cd jhbuild

./autogen.sh
...
make
...
make install

2.5 Add JHBuild to PATH [normal user]

## Current session ##
PATH=$PATH:~/.local/bin

## Permanently ##
echo 'PATH=$PATH:~/.local/bin' >> ~/.bashrc

2.6 Install needed packages to pass jhbuild sanitycheck [root]

apt install python3-distutils libtool docbook-xsl flex bison apt-file

2.7 Test run jhbuild sanitycheck [normal user]

jhbuild sanitycheck

Empty output means everyhting is OK and good to go.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close