@dodicat
I installed Scientific Linux on a VVM so that I could follow you along, my install included GTK2 and building geany from source was just a matter of ./configure, make and make install
after installing FB I launched geany and opened a simple console program and compiled it, it compiled OK but could not execute the program from geany, double-clicking on the executable seemed to have no effect, had to open the Terminal in order to execute the program.
I don't like this distribution, it's not beginner friendly, personally, I like Ubuntu, it works without problems, but since you installed a scientific distribution, I searched for an alternative to Scientific Linux and found Fedora Scientific
https://fedora-scientific.readthedocs.i ... index.html
it's package manager is derived from yum but it's called dnf, so, to install geany you do: sudo dnf geany
after installing FB, I tried my console program again, this time, it failed to compile because it could not find libtinfo.so.5
searching the web I found
https://github.com/commercialhaskell/stack/issues/1012, so following the suggestion I did:
sudo ln -s /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.5
after that, I could compile and run the program using geany
fedora works ok and I like it better than Scientific Linux