This doesn't answer your question but goes to the bigger question. Why are you, as a new user, trying to compile your own programs. Linux, Mint, has a very good package management system that has literally thousands of programs, vetted to work on your system, to choose from. Downloading programs from a third party and installing them on your system is the Windows way of doing things.
Not using the built-in package management system can create all kinds of conflicts on down the road. Yes, downloading and compiling your own programs is sometimes necessary and desirable, but for a new user it should probably be avoided until you become more familiar with Linux in general.
Just a few random thoughts.