Ok Im so clueless on how to installd GD and Freetype support, it's not even funny

Can anyone with a clue tell me what the command to install GD/Freetype is

I know about ./configure but it tells me no such directory

Im lost

help