If you look at the title of the post it states build instructions for Ubuntu 22.04 and not Ubuntu 24.04. as you are trying to build for. Have you tried these build instructions on Ubuntu 22.04 yet.
If you follow the log output it is telling you that no C compiler is found. If you’ve searched a little you’ll find that you need to install a C compiler via the following command
sudo apt install build-essential
This should give you the tools to complete the build process.
I haven’t tried building on Ubuntu 24.04 yet as I’ve no requirement at the moment for it. Just follow the build process log output when it fails as it usually points you to any further packages that need to be installed.