On Redhat based distros it's often easier to install a group of tools for a particular task rather than try and guess what one might need. You can use
yum to get the list of groups that are availble.
$ yum groups list
You can limit this list to developer types of groups like this:
$ yum groups list | grep -i dev
Development and Creative Workstation
C Development Tools and Libraries
RPM Development Tools
$ sudo yum groups install "C Development Tools and Libraries"
This group of packages should cover most of the opensource software you'll try and install. There will of course be outliers. If you encounter missing libraries you'll need to install the binary form of the library and the headers (for compilation).
For the library
libmng there are 4 packages available.
$ rpm -aq | grep libmn
So you'll need to install these types of packages to do a compilation. The libraries are always named
<lib name> and the corresponding headers are named
<lib name>-devel on Redhat distros.