Why don't you use https://projects.commandprompt.com/public/pgcore ? This repo provides a fonctionnal postgis rpm, and some more goodies. If you really want to compile it yourself (bad idea, imho), you'll need gcc-c++, and a quite a lot other packages. Laurent.