I'm using Arch Linux and in the current date I selected the most updated version of these libraries. If use system with stable but old packages you may encounter some problems.
I listed what was needed be installed on my system. I alredy have gcc and make and stuff like that installed. I recomend you to check out the documentation of each libary and see the build dependencies.
sudo pacman -S autoconf-archive gtk3 cairo
You will need install python 3 through pyenv and select it to use.