I am shifting from windows to linux. does GD runs on every distribution like mint? :confused:

On Linux Mint you should be able to use the Ubuntu repository from the main page:

If you compile the source code yourself it should run on any Linux distribution. There is a step by step tutorial for that:
preparation and compiling